mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL.
This commit is contained in:
parent
4a3d43936e
commit
68dd1ff405
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue