diff options
Diffstat (limited to 'Xi/opendev.c')
-rw-r--r-- | Xi/opendev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/opendev.c b/Xi/opendev.c index 46d55a820..3844d25a2 100644 --- a/Xi/opendev.c +++ b/Xi/opendev.c @@ -150,7 +150,7 @@ ProcXOpenDevice(ClientPtr client) } evbase[j].class = OtherClass; evbase[j++].event_type_base = event_base[OtherClass]; - rep.length = (j * sizeof(xInputClassInfo) + 3) >> 2; + rep.length = bytes_to_int32(j * sizeof(xInputClassInfo)); rep.num_classes = j; WriteReplyToClient(client, sizeof(xOpenDeviceReply), &rep); WriteToClient(client, j * sizeof(xInputClassInfo), (char *)evbase); |