From c005cd89e1543daec8145bd0811e108c6a602b77 Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Sat, 3 Aug 2002 17:06:51 +0000 Subject: [PATCH] Small diffs that p4 didn't catch when I extracted the diffs from my branch. --- sbin/mount_nullfs/mount_nullfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sbin/mount_nullfs/mount_nullfs.c b/sbin/mount_nullfs/mount_nullfs.c index 2b0f8e798187..e46aa0c36cb1 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;