aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_hpfs/mount_hpfs.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-08-07 04:50:29 +0000
committerWarner Losh <imp@FreeBSD.org>2003-08-07 04:50:29 +0000
commit4a3d43936e7854a0bd7855782d880f595adbf44d (patch)
tree2df5eb02dede0d063da5ecfc8e8648d228cf9f3d /sbin/mount_hpfs/mount_hpfs.c
parent718a5d6abd96f26582a8119f6bb1f61656243890 (diff)
downloadsrc-4a3d43936e7854a0bd7855782d880f595adbf44d.tar.gz
src-4a3d43936e7854a0bd7855782d880f595adbf44d.zip
MAXPATHLEN includes the trailing NUL, so no need to add 1 here.
Notes
Notes: svn path=/head/; revision=118579
Diffstat (limited to 'sbin/mount_hpfs/mount_hpfs.c')
-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 67f03399f632..95986f13fa0b 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));