From a49a8a3cf93e73babb6e47b05b0f269f36c7db44 Mon Sep 17 00:00:00 2001 From: Aki Sakurai Date: Sun, 9 Feb 2025 10:11:52 +0800 Subject: [PATCH] xquartz: fix compilation Fixes #1788 Fixes: 21df7a77d ("xquartz: fix length checking with bigreq") Part-of: (cherry picked from commit da0de21b727eb844296640d0878478b874817efd) --- hw/xquartz/applewm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xquartz/applewm.c b/hw/xquartz/applewm.c index 8c6a5dde6..a5b69a75f 100644 --- a/hw/xquartz/applewm.c +++ b/hw/xquartz/applewm.c @@ -387,7 +387,7 @@ ProcAppleWMSetWindowMenu(register ClientPtr client) return BadAlloc; } - max_len = (client->req-len << 2) - sizeof(xAppleWMSetWindowMenuReq); + max_len = (client->req_len << 2) - sizeof(xAppleWMSetWindowMenuReq); bytes = (char *)&stuff[1]; for (i = j = 0; i < max_len && j < nitems;) {