mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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 <info@metux.net>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user