aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/ModMap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/ModMap.c')
-rw-r--r--libX11/src/ModMap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libX11/src/ModMap.c b/libX11/src/ModMap.c
index 5c5b42612..04cd676eb 100644
--- a/libX11/src/ModMap.c
+++ b/libX11/src/ModMap.c
@@ -42,7 +42,7 @@ XGetModifierMapping(register Display *dpy)
GetEmptyReq(GetModifierMapping, req);
(void) _XReply (dpy, (xReply *)&rep, 0, xFalse);
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
nbytes = (unsigned long)rep.length << 2;
res = Xmalloc(sizeof (XModifierKeymap));
if (res)