Commit 6e8dc17d authored by Egbert Eich's avatar Egbert Eich
Browse files

19. Merging in Kaleb's changes to XlibInt.c which reflect Keith's fix to...

19. Merging in Kaleb's changes to XlibInt.c which reflect Keith's fix to version 3.41 in the Xlib repository (Egbert Eich).
parent 9e4e9b2d
......@@ -1281,9 +1281,10 @@ void _XReadPad(
if (bytes_read > 0) {
size -= bytes_read;
if (iov[0].iov_len < bytes_read) {
iov[1].iov_len += iov[0].iov_len - bytes_read;
int pad_bytes_read = bytes_read - iov[0].iov_len;
iov[1].iov_len -= pad_bytes_read;
iov[1].iov_base =
(char *)iov[1].iov_base + bytes_read - iov[0].iov_len;
(char *)iov[1].iov_base + pad_bytes_read;
iov[0].iov_len = 0;
}
else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment