diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2003-11-24 16:14:32 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2003-11-24 16:14:32 +0000 |
commit | cc639d558912e46f275094ee9aa0147a1452faf3 (patch) | |
tree | 17604f4d222313f6c9801852b703922d27836975 /sbin | |
parent | be4e6b7f9567b077e3a4f4aec9b4999566d46de6 (diff) | |
download | src-cc639d558912e46f275094ee9aa0147a1452faf3.tar.gz src-cc639d558912e46f275094ee9aa0147a1452faf3.zip |
Correct iov_len values passed to nmount(2) syscall. More accurate
parameter checking introduced in vfs_mount.c r1.113 rejects them
otherwise.
Submitted by: R. Imura <imura at ryu16 dot org>
Approved by: re (scottl,rwatson)
Notes
Notes:
svn path=/head/; revision=122977
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount_udf/mount_udf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount_udf/mount_udf.c b/sbin/mount_udf/mount_udf.c index 825d54be258d..8a4692d94093 100644 --- a/sbin/mount_udf/mount_udf.c +++ b/sbin/mount_udf/mount_udf.c @@ -142,11 +142,11 @@ main(int argc, char **argv) iov[i++].iov_len = sizeof(udf_flags); if (udf_flags & UDFMNT_KICONV) { iov[i].iov_base = "cs_disk"; - iov[i++].iov_len = sizeof("cs_disk") + 1; + iov[i++].iov_len = sizeof("cs_disk"); iov[i].iov_base = cs_disk; iov[i++].iov_len = strlen(cs_disk) + 1; iov[i].iov_base = "cs_local"; - iov[i++].iov_len = sizeof("cs_local") + 1; + iov[i++].iov_len = sizeof("cs_local"); iov[i].iov_base = cs_local; iov[i++].iov_len = strlen(cs_local) + 1; } |