mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 08:00:33 +01:00
xquartz: fix compilation
Fixes #1788
Fixes: 21df7a77d ("xquartz: fix length checking with bigreq")
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1777>
(cherry picked from commit da0de21b72)
This commit is contained in:
parent
d54c1e6c44
commit
a49a8a3cf9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue