diff options
Diffstat (limited to 'Xi/queryst.c')
-rw-r--r-- | Xi/queryst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/queryst.c b/Xi/queryst.c index c6858e4e0..60ec32ec9 100644 --- a/Xi/queryst.c +++ b/Xi/queryst.c @@ -161,7 +161,7 @@ ProcXQueryDeviceState(ClientPtr client) } rep.num_classes = num_classes; - rep.length = (total_length + 3) >> 2; + rep.length = bytes_to_int32(total_length); WriteReplyToClient(client, sizeof(xQueryDeviceStateReply), &rep); if (total_length > 0) WriteToClient(client, total_length, savbuf); |