[Fontconfig] fontconfig: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Jan 17 17:27:38 PST 2013


 src/fcdefault.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6118781f7f5dba672d19a841cc231661bf5fb59d
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Jan 17 19:27:20 2013 -0600

    Fix readlink failure
    
    As reported by Raimund Steger.

diff --git a/src/fcdefault.c b/src/fcdefault.c
index b1bd9cc..d1217a4 100644
--- a/src/fcdefault.c
+++ b/src/fcdefault.c
@@ -148,11 +148,11 @@ retry:
 	    prgname = FcStrdup ("");
 #else
 	char buf[PATH_MAX + 1];
-	unsigned int len;
+	int len;
 	char *p = NULL;
 
 	len = readlink ("/proc/self/exe", buf, sizeof (buf) - 1);
-	if (len > 0)
+	if (len != -1)
 	{
 	    buf[len] = '\0';
 	    p = buf;


More information about the Fontconfig mailing list