Off-by-one error in the sequence-wrapping proof, and therefore in the corresponding code.

This commit is contained in:
Jamey Sharp 2006-03-06 01:10:20 -08:00
parent e5458e477d
commit d1cfd4d0a2

View File

@ -136,7 +136,7 @@ unsigned int XCBSendRequest(XCBConnection *c, int flags, struct iovec *vector, c
while(c->out.writing) while(c->out.writing)
pthread_cond_wait(&c->out.cond, &c->iolock); 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; prefix[0] = sync.packet;
request = ++c->out.request; request = ++c->out.request;