diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-14 18:21:43 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-14 18:47:22 +1000 |
commit | 1d20b9021e8aecb942619f64017cc2fc31f02d29 (patch) | |
tree | 45b9567e0d52f71321832ba41924ac91c241eb06 | |
parent | 9afc3241c157e5c19454f913c7105b3fdfa97ec4 (diff) |
Xi: fix wrong bit->byte conversion in ProcXIQueryPointer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | Xi/querydp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/querydp.c b/Xi/querydp.c index bc6feb1b1..e5bf98d86 100644 --- a/Xi/querydp.c +++ b/Xi/querydp.c @@ -132,7 +132,7 @@ ProcXIQueryPointer(ClientPtr client) if (pDev->button) { int i, down; - rep.buttons_len = ((pDev->button->numButtons/8) + 3)/4; + rep.buttons_len = (((pDev->button->numButtons + 7)/8) + 3)/4; rep.length += rep.buttons_len; buttons = xcalloc(rep.buttons_len, 4); if (!buttons) |