mirror of https://github.com/mkerrisk/man-pages
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:
parent
54a820120b
commit
0e42c515c9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue