MAXPATHLEN includes the trailing NUL, so no need to add 1 here.
This commit is contained in:
parent
718a5d6abd
commit
4a3d43936e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118579
@ -68,7 +68,7 @@ main(argc, argv)
|
||||
struct stat sb;
|
||||
int c, mntflags, set_gid, set_uid, set_mask;
|
||||
int forcerw = 0;
|
||||
char *dev, *dir, ndir[MAXPATHLEN+1];
|
||||
char *dev, *dir, ndir[MAXPATHLEN];
|
||||
|
||||
mntflags = set_gid = set_uid = set_mask = 0;
|
||||
(void)memset(&args, '\0', sizeof(args));
|
||||
|
Loading…
Reference in New Issue
Block a user