mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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;
|
||||
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 New Issue
Block a user