Xi: fix wrong bit->byte conversion in ProcXIQueryPointer

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-06-14 18:21:43 +10:00
parent 9afc3241c1
commit 1d20b9021e

View File

@ -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)