summaryrefslogtreecommitdiff
path: root/src/xcb_out.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-03-02 23:31:35 -0800
committerJamey Sharp <jamey@minilop.net>2006-03-02 23:31:35 -0800
commit87905f0579e749ac6d92843780af246160318eca (patch)
tree9b4458f7d08449ab37ac97ed34bb0868a5b39e71 /src/xcb_out.c
parent45e1cc0935ca1d7a138e1c700db229f50205a556 (diff)
assert() that XCBSendRequest was handed enough space to set opcodes and short length fields.
Diffstat (limited to 'src/xcb_out.c')
-rw-r--r--src/xcb_out.c1
1 files changed, 1 insertions, 0 deletions
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)
{