process_vm_readv.2: Fix typo in example program

Reported-by: Ville Ylenius <ville@ylenius.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-08-17 10:52:18 -05:00
parent 54a820120b
commit 0e42c515c9
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ main(void)
local[1].iov_base = buf2;
local[1].iov_len = 10;
remote[0].iov_base = (void *) 0x10000;
remote[1].iov_len = 20;
remote[0].iov_len = 20;
nread = process_vm_readv(pid, local, 2, remote, 1, 0);
if (nread != 20)