From d1cfd4d0a21feaa5ccf0a1fd693327b8c5718abf Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Mon, 6 Mar 2006 01:10:20 -0800 Subject: [PATCH] Off-by-one error in the sequence-wrapping proof, and therefore in the corresponding code. --- src/xcb_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xcb_out.c b/src/xcb_out.c index c4ef737..2494ef3 100644 --- a/src/xcb_out.c +++ b/src/xcb_out.c @@ -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; -- 2.34.1