summaryrefslogtreecommitdiff
path: root/sbin/newfs_msdos/newfs_msdos.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-02-21 07:32:56 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-02-21 07:32:56 +0000
commit1e969584d9a580f9e4a323e853604bbfe3fe0eb6 (patch)
tree72b76fab72d624cb203114c5f486f90fcf1a67b1 /sbin/newfs_msdos/newfs_msdos.c
parent64fc253682fe6c58db87b2d3937eac037505e58d (diff)
use sizeof w/ defines; niklas@ millert@ ok.
Diffstat (limited to 'sbin/newfs_msdos/newfs_msdos.c')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c
index e2c8f4066bd..acfd782f55e 100644
--- a/sbin/newfs_msdos/newfs_msdos.c
+++ b/sbin/newfs_msdos/newfs_msdos.c
@@ -697,7 +697,7 @@ check_mounted(const char *fname, mode_t mode)
if (!(n = getmntinfo(&mp, MNT_NOWAIT)))
err(1, "getmntinfo");
- len = strlen(_PATH_DEV);
+ len = sizeof(_PATH_DEV) - 1;
s1 = fname;
if (!strncmp(s1, _PATH_DEV, len))
s1 += len;