diff options
Diffstat (limited to 'libX11/src/ListExt.c')
-rw-r--r-- | libX11/src/ListExt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libX11/src/ListExt.c b/libX11/src/ListExt.c index e925c4773..59599d1a6 100644 --- a/libX11/src/ListExt.c +++ b/libX11/src/ListExt.c @@ -55,7 +55,7 @@ char **XListExtensions( if (rep.nExtensions) { list = Xmalloc (rep.nExtensions * sizeof (char *)); - if (rep.length < (LONG_MAX >> 2)) { + if (rep.length < (INT_MAX >> 2)) { rlen = rep.length << 2; ch = Xmalloc (rlen + 1); /* +1 to leave room for last null-terminator */ |