mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-09 09:38:15 +02:00
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:
parent
1f42e6ce18
commit
3408cb629b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue