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:
@@ -655,7 +655,7 @@ ProcRRGetProviderProperty(ClientPtr client)
|
||||
}
|
||||
}
|
||||
|
||||
WriteToClient(client, sizeof(xGenericReply), &reply);
|
||||
WriteToClient(client, sizeof(reply), &reply);
|
||||
WriteToClient(client, len, extra);
|
||||
free(extra);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user