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.
This commit is contained in:
parent
55ca07b02e
commit
763278ed68
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user