assert() that XCBSendRequest was handed enough space to set opcodes and short length fields.

This commit is contained in:
Jamey Sharp 2006-03-02 23:31:35 -08:00
parent 45e1cc0935
commit 87905f0579

View File

@ -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)
{