aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/GetFPath.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/GetFPath.c')
-rw-r--r--nx-X11/lib/X11/GetFPath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/GetFPath.c b/nx-X11/lib/X11/GetFPath.c
index abd4a5dbd..8f8c6144a 100644
--- a/nx-X11/lib/X11/GetFPath.c
+++ b/nx-X11/lib/X11/GetFPath.c
@@ -50,7 +50,7 @@ char **XGetFontPath(
if (rep.nPaths) {
flist = Xmalloc(rep.nPaths * sizeof (char *));
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
nbytes = (unsigned long) rep.length << 2;
ch = Xmalloc (nbytes + 1);
/* +1 to leave room for last null-terminator */