X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_out.c;fp=src%2Fxcb_out.c;h=b3050fe3d55f14fb619434f00b87b726f07076e1;hb=e06955ed66cb499ada52b8add6709edd38d70054;hp=4c6ab133b2326208f15f4b18bb7d54c8d462d91a;hpb=9e191c722a0be4b5f3d993165055a71f85c21882;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_out.c b/src/xcb_out.c index 4c6ab13..b3050fe 100644 --- 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[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]; }