From 0c3d11fc64d929a0a17ec61b508d9e84c38a6706 Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 7 Aug 2003 04:50:29 +0000 Subject: MAXPATHLEN includes the trailing NUL, so no need to add 1 here. --- sbin/mount_hpfs/mount_hpfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin') diff --git a/sbin/mount_hpfs/mount_hpfs.c b/sbin/mount_hpfs/mount_hpfs.c index 67f0339..95986f1 100644 --- a/sbin/mount_hpfs/mount_hpfs.c +++ b/sbin/mount_hpfs/mount_hpfs.c @@ -68,7 +68,7 @@ main(argc, argv) struct stat sb; int c, mntflags, set_gid, set_uid, set_mask; int forcerw = 0; - char *dev, *dir, ndir[MAXPATHLEN+1]; + char *dev, *dir, ndir[MAXPATHLEN]; mntflags = set_gid = set_uid = set_mask = 0; (void)memset(&args, '\0', sizeof(args)); -- cgit v1.1