Expand the sscanf buffer to 32 bytes to make room for the expanded
pattern, with some space left over to avoid this mistake next time it's improved. Submitted by: luoqi
This commit is contained in:
parent
45168c5d16
commit
7a0beaf12d
@ -165,7 +165,7 @@ vfs_mountroot_try(char *mountfrom)
|
||||
struct mount *mp;
|
||||
char *vfsname, *path;
|
||||
int error;
|
||||
char patt[16];
|
||||
char patt[32];
|
||||
|
||||
vfsname = path = mp = NULL;
|
||||
error = EINVAL;
|
||||
|
@ -165,7 +165,7 @@ vfs_mountroot_try(char *mountfrom)
|
||||
struct mount *mp;
|
||||
char *vfsname, *path;
|
||||
int error;
|
||||
char patt[16];
|
||||
char patt[32];
|
||||
|
||||
vfsname = path = mp = NULL;
|
||||
error = EINVAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user