mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 19:18:03 +02:00
Xi: fix querydevice request swapping
WriteReplyToClient() swaps rep.length, so it can't be used
on return of WriteReplyToClient(). So save it's value for later
use.
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Reviewed-by: Julien Cristau <jcristau@debian.org>
(cherry picked from commit 266ea63bc3)
This commit is contained in:
parent
2f12adb2c9
commit
1f51fe4f74
1 changed files with 2 additions and 1 deletions
|
|
@ -155,8 +155,9 @@ ProcXIQueryDevice(ClientPtr client)
|
|||
}
|
||||
}
|
||||
|
||||
len = rep.length * 4;
|
||||
WriteReplyToClient(client, sizeof(xXIQueryDeviceReply), &rep);
|
||||
WriteToClient(client, rep.length * 4, ptr);
|
||||
WriteToClient(client, len, ptr);
|
||||
free(ptr);
|
||||
free(skip);
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue