summaryrefslogtreecommitdiff
path: root/sbin/mount_nullfs
diff options
context:
space:
mode:
authorMaxime Henrion <mux@FreeBSD.org>2002-08-03 17:06:51 +0000
committerMaxime Henrion <mux@FreeBSD.org>2002-08-03 17:06:51 +0000
commitc005cd89e1543daec8145bd0811e108c6a602b77 (patch)
tree50c9779f89305818adb2504e6ee98e0bd634991c /sbin/mount_nullfs
parent7b333193e0bc547486644315f18e7c8fff926416 (diff)
downloadsrc-test-c005cd89e1543daec8145bd0811e108c6a602b77.tar.gz
src-test-c005cd89e1543daec8145bd0811e108c6a602b77.zip
Notes
Diffstat (limited to 'sbin/mount_nullfs')
-rw-r--r--sbin/mount_nullfs/mount_nullfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/mount_nullfs/mount_nullfs.c b/sbin/mount_nullfs/mount_nullfs.c
index 2b0f8e798187a..e46aa0c36cb15 100644
--- a/sbin/mount_nullfs/mount_nullfs.c
+++ b/sbin/mount_nullfs/mount_nullfs.c
@@ -77,7 +77,6 @@ main(argc, argv)
int ch, mntflags;
char source[MAXPATHLEN];
char target[MAXPATHLEN];
- int error;
mntflags = 0;
while ((ch = getopt(argc, argv, "o:")) != -1)
@@ -106,7 +105,7 @@ main(argc, argv)
iov[0].iov_base = "fstype";
iov[0].iov_len = sizeof("fstype");
iov[1].iov_base = "nullfs";
- iov[1].iov_len = strlen("nullfs") + 1;
+ iov[1].iov_len = strlen(iov[1].iov_base) + 1;
iov[2].iov_base = "fspath";
iov[2].iov_len = sizeof("fspath");
iov[3].iov_base = source;