fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

New commits:
commit 6118781f7f5dba672d19a841cc231661bf5fb59d
Author: Behdad Esfahbod <behdad@xxxxxxxxxx>
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;
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux