diff options
author | imp <imp@FreeBSD.org> | 2003-08-07 04:51:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-08-07 04:51:41 +0000 |
commit | 8053a343da05faf780196aaf6458b400964752a0 (patch) | |
tree | 5cb06d9ada3005e6fddcaabf883447d6b3112067 /sbin | |
parent | 0c3d11fc64d929a0a17ec61b508d9e84c38a6706 (diff) | |
download | FreeBSD-src-8053a343da05faf780196aaf6458b400964752a0.zip FreeBSD-src-8053a343da05faf780196aaf6458b400964752a0.tar.gz |
Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 6cfe79b..40478cb 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -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; |