diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2018-09-11 19:34:58 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2018-09-11 19:34:58 +0000 |
commit | 5b6cb0ac05beef2969cd97b1bcbc312986e27d63 (patch) | |
tree | 23bf7c589f43111b70ef8445658f28e7a7b1df02 /lib/libxcb/src/res.c | |
parent | 26e88f304a40144b9cc2579824a419bd96418454 (diff) |
Update to libxcb 1.13. ok tb@
Diffstat (limited to 'lib/libxcb/src/res.c')
-rw-r--r-- | lib/libxcb/src/res.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libxcb/src/res.c b/lib/libxcb/src/res.c index 9f737ab9f..5b5da8187 100644 --- a/lib/libxcb/src/res.c +++ b/lib/libxcb/src/res.c @@ -88,7 +88,7 @@ xcb_res_client_id_value_sizeof (const void *_buffer) xcb_buffer_len += xcb_block_len; xcb_block_len = 0; /* value */ - xcb_block_len += _aux->length * sizeof(uint32_t); + xcb_block_len += (_aux->length / 4) * sizeof(uint32_t); xcb_tmp += xcb_block_len; xcb_align_to = ALIGNOF(uint32_t); /* insert padding */ @@ -112,14 +112,14 @@ xcb_res_client_id_value_value (const xcb_res_client_id_value_t *R) int xcb_res_client_id_value_value_length (const xcb_res_client_id_value_t *R) { - return R->length; + return (R->length / 4); } xcb_generic_iterator_t xcb_res_client_id_value_value_end (const xcb_res_client_id_value_t *R) { xcb_generic_iterator_t i; - i.data = ((uint32_t *) (R + 1)) + (R->length); + i.data = ((uint32_t *) (R + 1)) + ((R->length / 4)); i.rem = 0; i.index = (char *) i.data - (char *) R; return i; |