MAXPATHLEN includes the trailing NUL, so no need to add 1 here.

This commit is contained in:
Warner Losh 2003-08-07 04:50:29 +00:00
parent 718a5d6abd
commit 4a3d43936e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118579

View File

@ -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));