diff options
author | Jamey Sharp <jamey@minilop.net> | 2006-03-07 21:19:58 -0800 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2006-03-07 21:19:58 -0800 |
commit | c491eeb9a9f670f7d4869d7dae7a5adce4565998 (patch) | |
tree | 3a975f075331b68d2f78f650f1d9d16154148706 /src/xcb_out.c | |
parent | 522a6e0eac9adeaac533a5b700f42d85d46e2dd7 (diff) |
Fix off-by-one error that kept the last byte(s) of the output queue from being used.
Diffstat (limited to 'src/xcb_out.c')
-rw-r--r-- | src/xcb_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xcb_out.c b/src/xcb_out.c index 2494ef3..1faf2a5 100644 --- a/src/xcb_out.c +++ b/src/xcb_out.c @@ -237,7 +237,7 @@ int _xcb_out_write(XCBConnection *c) int _xcb_out_write_block(XCBConnection *c, struct iovec *vector, size_t count) { assert(!c->out.vec && !c->out.vec_len); - while(count && c->out.queue_len + vector[0].iov_len < sizeof(c->out.queue)) + while(count && c->out.queue_len + vector[0].iov_len <= sizeof(c->out.queue)) { memcpy(c->out.queue + c->out.queue_len, vector[0].iov_base, vector[0].iov_len); c->out.queue_len += vector[0].iov_len; |