add missing increment of addr in read_string()

This commit is contained in:
Todd C. Miller
2004-09-25 20:58:11 +00:00
parent 649e2dac12
commit 28736eb556

View File

@@ -477,6 +477,7 @@ read_string(fd, pid, addr, buf, bufsiz)
break;
}
cp += chunksiz;
addr += chunksiz;
bufsiz -= chunksiz;
} else {
if (errno != EINVAL || chunksiz == 4)