From 68dd1ff405a4aac17f0cac46d0e80e44c612b7ef Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 7 Aug 2003 04:51:41 +0000 Subject: [PATCH] Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL. --- sbin/mount/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 6cfe79b4c3ae..40478cb35ae0 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;