aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/ListExt.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/ListExt.c')
-rw-r--r--nx-X11/lib/X11/ListExt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/ListExt.c b/nx-X11/lib/X11/ListExt.c
index e925c4773..59599d1a6 100644
--- a/nx-X11/lib/X11/ListExt.c
+++ b/nx-X11/lib/X11/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 */