summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-08-07 04:51:41 +0000
committerimp <imp@FreeBSD.org>2003-08-07 04:51:41 +0000
commit8053a343da05faf780196aaf6458b400964752a0 (patch)
tree5cb06d9ada3005e6fddcaabf883447d6b3112067 /sbin/mount
parent0c3d11fc64d929a0a17ec61b508d9e84c38a6706 (diff)
downloadFreeBSD-src-8053a343da05faf780196aaf6458b400964752a0.zip
FreeBSD-src-8053a343da05faf780196aaf6458b400964752a0.tar.gz
Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL.
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mount.c2
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;
OpenPOWER on IntegriCloud