Off-by-one error in the sequence-wrapping proof, and therefore in the corresponding...
authorJamey Sharp <jamey@minilop.net>
Mon, 6 Mar 2006 09:10:20 +0000 (01:10 -0800)
committerJamey Sharp <jamey@minilop.net>
Mon, 6 Mar 2006 09:10:20 +0000 (01:10 -0800)
src/xcb_out.c

index c4ef737..2494ef3 100644 (file)
@@ -136,7 +136,7 @@ unsigned int XCBSendRequest(XCBConnection *c, int flags, struct iovec *vector, c
     while(c->out.writing)
         pthread_cond_wait(&c->out.cond, &c->iolock);
 
-    if(req->isvoid && c->out.request == c->in.request_expected + (1 << 16) - 1)
+    if(req->isvoid && c->out.request == c->in.request_expected + (1 << 16) - 2)
     {
         prefix[0] = sync.packet;
         request = ++c->out.request;