summaryrefslogtreecommitdiffstats
path: root/sbin/mount_std
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-05 20:06:01 +0000
committerjhb <jhb@FreeBSD.org>2002-11-05 20:06:01 +0000
commit763278ed687b3b47e02d0301d512d8e59198d557 (patch)
treede5ffff1a65ca705735a17c888014dad2a217379 /sbin/mount_std
parent55ca07b02e4cfeb66438a21ce194886ae63ba897 (diff)
downloadFreeBSD-src-763278ed687b3b47e02d0301d512d8e59198d557.zip
FreeBSD-src-763278ed687b3b47e02d0301d512d8e59198d557.tar.gz
Take sizeof() the right string for fspath's iovec. The old string was the
same size so this doesn't fix a bug, but it makes it cleaner.
Diffstat (limited to 'sbin/mount_std')
-rw-r--r--sbin/mount_std/mount_std.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount_std/mount_std.c b/sbin/mount_std/mount_std.c
index 1f3c8d3..cdfd736 100644
--- a/sbin/mount_std/mount_std.c
+++ b/sbin/mount_std/mount_std.c
@@ -127,7 +127,7 @@ main(argc, argv)
iov[1].iov_base = fsname;
iov[1].iov_len = strlen(iov[1].iov_base) + 1;
iov[2].iov_base = "fspath";
- iov[2].iov_len = sizeof("fstype");
+ iov[2].iov_len = sizeof("fspath");
iov[3].iov_base = mntpath;
iov[3].iov_len = strlen(mntpath) + 1;
OpenPOWER on IntegriCloud