bug #265 sync with fd.o xlibs version of the fix XFree86 made to their XlibInt.c, 3.37 (4.3.99.5)

This commit is contained in:
Kaleb Keithley 2004-03-03 21:49:58 +00:00
parent 1f42e6ce18
commit 3408cb629b

View file

@ -1281,9 +1281,9 @@ 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;
iov[1].iov_len -= (bytes_read - iov[0].iov_len);
iov[1].iov_base =
(char *)iov[1].iov_base + bytes_read - iov[0].iov_len;
(char *)iov[1].iov_base + (bytes_read - iov[0].iov_len);
iov[0].iov_len = 0;
}
else {