From 8053a343da05faf780196aaf6458b400964752a0 Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 7 Aug 2003 04:51:41 +0000 Subject: Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL. --- sbin/mount/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/mount') 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; -- cgit v1.1