mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 08:29:23 +00: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>
This commit is contained in:
@@ -153,8 +153,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;
|
||||
|
||||
Reference in New Issue
Block a user