diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index cbdc74e4d..b828b7301 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -1831,7 +1831,7 @@ ProcRRGetCrtcTransform(ClientPtr client) xRRGetCrtcTransformReply rep = { .type = X_Reply, .sequenceNumber = client->sequence, - .length = bytes_to_int32(sizeof(xRRGetCrtcTransformReply) - sizeof(xReq) + nextra), + .length = bytes_to_int32(sizeof(xRRGetCrtcTransformReply) - sizeof(xGenericReply) + nextra), .hasTransforms = crtc->transforms, };