diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-05 20:06:01 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-05 20:06:01 +0000 |
commit | 763278ed687b3b47e02d0301d512d8e59198d557 (patch) | |
tree | de5ffff1a65ca705735a17c888014dad2a217379 /sbin/mount_std | |
parent | 55ca07b02e4cfeb66438a21ce194886ae63ba897 (diff) | |
download | FreeBSD-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.c | 2 |
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; |