From 0824e63e77d6e81e3c430df8ddb380d1bfdc9d92 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 17 Apr 2026 18:12:14 +1000 Subject: [PATCH] randr, Xext: remove stale length swaps The dispatch infrastructure already handles request length byte-swapping via get_req_len() / client->req_len, so let's not double-swap the length field back to the wrong byte order. Co-Authored-by: Claude Code Part-of: --- Xext/geext.c | 1 - randr/rrsdispatch.c | 1 - 2 files changed, 2 deletions(-) diff --git a/Xext/geext.c b/Xext/geext.c index 0c950abca..aa328e016 100644 --- a/Xext/geext.c +++ b/Xext/geext.c @@ -108,7 +108,6 @@ SProcGEQueryVersion(ClientPtr client) { REQUEST(xGEQueryVersionReq); - swaps(&stuff->length); REQUEST_SIZE_MATCH(xGEQueryVersionReq); swaps(&stuff->majorVersion); swaps(&stuff->minorVersion); diff --git a/randr/rrsdispatch.c b/randr/rrsdispatch.c index 07acd3b8e..3b47f5ebf 100644 --- a/randr/rrsdispatch.c +++ b/randr/rrsdispatch.c @@ -114,7 +114,6 @@ SProcRRGetScreenResourcesCurrent(ClientPtr client) REQUEST(xRRGetScreenResourcesCurrentReq); REQUEST_SIZE_MATCH(xRRGetScreenResourcesCurrentReq); - swaps(&stuff->length); swapl(&stuff->window); return (*ProcRandrVector[stuff->randrReqType]) (client); }