From d3573913c3075d7a6907e3f34977e044e36fa235 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 14 Aug 2025 16:46:16 +0200 Subject: [PATCH] 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 --- Xi/xiproperty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xi/xiproperty.c b/Xi/xiproperty.c index 2691a89357..bf138c7710 100644 --- a/Xi/xiproperty.c +++ b/Xi/xiproperty.c @@ -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) {