mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 23:08:59 +00:00
(submit/xext-saver) Xext: saver: fix missing swap in QueryVersion reply
The `majorVersion` and `minorVersion` fields are CARD16, thus need to be swapped. OTOH, the lengths field is zero anyways, so no need to swap it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -608,6 +608,8 @@ ProcScreenSaverQueryVersion(ClientPtr client)
|
||||
if (client->swapped) {
|
||||
swaps(&rep.sequenceNumber);
|
||||
swapl(&rep.length);
|
||||
swaps(&rep.majorVersion);
|
||||
swaps(&rep.minorVersion);
|
||||
}
|
||||
WriteToClient(client, sizeof(xScreenSaverQueryVersionReply), &rep);
|
||||
return Success;
|
||||
|
||||
Reference in New Issue
Block a user