aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/FontNames.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/FontNames.c')
-rw-r--r--nx-X11/lib/X11/FontNames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/FontNames.c b/nx-X11/lib/X11/FontNames.c
index b5bc7b4ba..764711559 100644
--- a/nx-X11/lib/X11/FontNames.c
+++ b/nx-X11/lib/X11/FontNames.c
@@ -66,7 +66,7 @@ int *actualCount) /* RETURN */
if (rep.nFonts) {
flist = Xmalloc (rep.nFonts * 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 */