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;