mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
Xi: fix size parameter to WriteToClient()
Size computation needs to be done on the struct actually written. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -989,7 +989,7 @@ ProcXGetDeviceProperty(ClientPtr client)
|
||||
swapl(&rep.bytesAfter);
|
||||
swapl(&rep.nItems);
|
||||
}
|
||||
WriteToClient(client, sizeof(xGenericReply), &rep);
|
||||
WriteToClient(client, sizeof(rep), &rep);
|
||||
|
||||
if (length) {
|
||||
switch (rep.format) {
|
||||
|
||||
Reference in New Issue
Block a user