Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL.

This commit is contained in:
Warner Losh 2003-08-07 04:51:41 +00:00
parent 4a3d43936e
commit 68dd1ff405
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118580

View File

@ -398,7 +398,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts)
struct statfs sf;
pid_t pid;
int argc, i, status;
char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN];
char *optbuf, execname[PATH_MAX], mntpath[PATH_MAX];
#if __GNUC__
(void)&optbuf;