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:
Enrico Weigelt, metux IT consult 2025-02-26 19:01:53 +01:00
parent a0c1eeea98
commit 0ca5aaba50

View File

@ -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,
};