projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix precedence bug: wrong length for big-requests preceded by sync.
[free-sw/xcb/libxcb]
/
src
/
xcb_out.c
diff --git
a/src/xcb_out.c
b/src/xcb_out.c
index
4c6ab13
..
b3050fe
100644
(file)
--- a/
src/xcb_out.c
+++ b/
src/xcb_out.c
@@
-242,7
+242,7
@@
unsigned int xcb_send_request(xcb_connection_t *c, int flags, struct iovec *vect
vector[1].iov_base = (uint32_t *) vector[1].iov_base + 1;
vector[1].iov_len -= sizeof(uint32_t);
}
vector[1].iov_base = (uint32_t *) vector[1].iov_base + 1;
vector[1].iov_len -= sizeof(uint32_t);
}
- vector[0].iov_len = sizeof(uint32_t) * (
prefix[0] ? 1 : 0 | prefix[2] ? 2 : 0
);
+ vector[0].iov_len = sizeof(uint32_t) * (
(prefix[0] ? 1 : 0) + (prefix[2] ? 2 : 0)
);
vector[0].iov_base = prefix + !prefix[0];
}
vector[0].iov_base = prefix + !prefix[0];
}