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:
Enrico Weigelt, metux IT consult
2025-08-14 16:46:16 +02:00
parent 7236546874
commit d3573913c3

View File

@@ -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) {