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