aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/GetFPath.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/GetFPath.c')
-rw-r--r--libX11/src/GetFPath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libX11/src/GetFPath.c b/libX11/src/GetFPath.c
index abd4a5dbd..8f8c6144a 100644
--- a/libX11/src/GetFPath.c
+++ b/libX11/src/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 */