mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-17 19:42:21 +00:00
Xi: use byte-counting macros instead of manual calculation.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
912402fd71
commit
7dd415aa6a
28 changed files with 56 additions and 55 deletions
|
|
@ -120,7 +120,7 @@ ProcXGetDeviceDontPropagateList(ClientPtr client)
|
|||
if (count) {
|
||||
rep.count = count;
|
||||
buf = (XEventClass *) xalloc(rep.count * sizeof(XEventClass));
|
||||
rep.length = (rep.count * sizeof(XEventClass) + 3) >> 2;
|
||||
rep.length = bytes_to_int32(rep.count * sizeof(XEventClass));
|
||||
|
||||
tbuf = buf;
|
||||
for (i = 0; i < EMASKSIZE; i++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue