aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/GetFPath.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-07-22 14:48:36 +0200
committermarha <marha@users.sourceforge.net>2013-07-22 14:48:36 +0200
commit81d811ac780a2524fff09a516b6f0212c3f209a2 (patch)
tree0607523b8ebef04e930cdbf538274c59f983cd07 /libX11/src/GetFPath.c
parentcde797e5f774a44b89e51da0f32472329eac06cb (diff)
parentb6aadb8490bdacf33196fa0898fe1247b9a8ee2c (diff)
downloadvcxsrv-81d811ac780a2524fff09a516b6f0212c3f209a2.tar.gz
vcxsrv-81d811ac780a2524fff09a516b6f0212c3f209a2.tar.bz2
vcxsrv-81d811ac780a2524fff09a516b6f0212c3f209a2.zip
Merge remote-tracking branch 'origin/released'
* origin/released: libX11 mesa git update 22 Jul 2013
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 */