Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL.
This commit is contained in:
parent
4a3d43936e
commit
68dd1ff405
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118580
@ -398,7 +398,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts)
|
|||||||
struct statfs sf;
|
struct statfs sf;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
int argc, i, status;
|
int argc, i, status;
|
||||||
char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN];
|
char *optbuf, execname[PATH_MAX], mntpath[PATH_MAX];
|
||||||
|
|
||||||
#if __GNUC__
|
#if __GNUC__
|
||||||
(void)&optbuf;
|
(void)&optbuf;
|
||||||
|
Loading…
Reference in New Issue
Block a user