add missing increment of addr in read_string()
This commit is contained in:
@@ -477,6 +477,7 @@ read_string(fd, pid, addr, buf, bufsiz)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
cp += chunksiz;
|
cp += chunksiz;
|
||||||
|
addr += chunksiz;
|
||||||
bufsiz -= chunksiz;
|
bufsiz -= chunksiz;
|
||||||
} else {
|
} else {
|
||||||
if (errno != EINVAL || chunksiz == 4)
|
if (errno != EINVAL || chunksiz == 4)
|
||||||
|
Reference in New Issue
Block a user