projects
/
free-sw
/
xcb
/
libxcb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
522a6e0
)
Fix off-by-one error that kept the last byte(s) of the output queue from being used.
author
Jamey Sharp
<jamey@minilop.net>
Wed, 8 Mar 2006 05:19:58 +0000
(21:19 -0800)
committer
Jamey Sharp
<jamey@minilop.net>
Wed, 8 Mar 2006 05:19:58 +0000
(21:19 -0800)
src/xcb_out.c
patch
|
blob
|
history
diff --git
a/src/xcb_out.c
b/src/xcb_out.c
index
2494ef3
..
1faf2a5
100644
(file)
--- 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;