X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_out.c;h=78ec8ca9cd70e59a5ff60d683a2c0ae72b2afc31;hb=87905f0579e749ac6d92843780af246160318eca;hp=054a2ae41fae52e9171db68af11a69ac4a4123a4;hpb=5e115e2441ed32f5fa495370b36b01c03bbff66d;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_out.c b/src/xcb_out.c index 054a2ae..78ec8ca 100644 --- a/src/xcb_out.c +++ b/src/xcb_out.c @@ -87,6 +87,7 @@ int XCBSendRequest(XCBConnection *c, unsigned int *request, int flags, struct io int i; CARD16 shortlen = 0; size_t longlen = 0; + assert(vector[0].iov_len >= 4); /* set the major opcode, and the minor opcode for extensions */ if(req->ext) {