summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-08-07 04:50:29 +0000
committerimp <imp@FreeBSD.org>2003-08-07 04:50:29 +0000
commit0c3d11fc64d929a0a17ec61b508d9e84c38a6706 (patch)
tree2df5eb02dede0d063da5ecfc8e8648d228cf9f3d /sbin
parentba78afdcb65bc6db9e4140b583dd6047edbb050b (diff)
downloadFreeBSD-src-0c3d11fc64d929a0a17ec61b508d9e84c38a6706.zip
FreeBSD-src-0c3d11fc64d929a0a17ec61b508d9e84c38a6706.tar.gz
MAXPATHLEN includes the trailing NUL, so no need to add 1 here.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_hpfs/mount_hpfs.c2
1 files changed, 1 insertions, 1 deletions
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));
OpenPOWER on IntegriCloud