From 9b6ff22f1daeb7c33fdbff680c0df06f521bda48 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 14 Aug 2025 16:46:16 +0200 Subject: [PATCH] randr: fix size parameter to WriteToClient() Size computation needs to be done on the struct actually written. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/rrproviderproperty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randr/rrproviderproperty.c b/randr/rrproviderproperty.c index 4094c69719..a53938c8f3 100644 --- a/randr/rrproviderproperty.c +++ b/randr/rrproviderproperty.c @@ -654,7 +654,7 @@ ProcRRGetProviderProperty(ClientPtr client) if (rpcbuf.error) return BadAlloc; - WriteToClient(client, sizeof(xGenericReply), &reply); + WriteToClient(client, sizeof(reply), &reply); WriteRpcbufToClient(client, &rpcbuf); if (stuff->delete && (reply.bytesAfter == 0)) { /* delete the Property */