mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 18:54:38 +00:00
randr: fix RRGetCrtcTransform reply length
Reply length field missed to add the payload's size.
Fixes: c6f1b8a735
Issue: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1797
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1844>
This commit is contained in:
@@ -1831,7 +1831,7 @@ ProcRRGetCrtcTransform(ClientPtr client)
|
||||
xRRGetCrtcTransformReply rep = {
|
||||
.type = X_Reply,
|
||||
.sequenceNumber = client->sequence,
|
||||
.length = bytes_to_int32(sizeof(xRRGetCrtcTransformReply) - sizeof(xReq)),
|
||||
.length = bytes_to_int32(sizeof(xRRGetCrtcTransformReply) - sizeof(xReq) + nextra),
|
||||
.hasTransforms = crtc->transforms,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user