diff options
Diffstat (limited to 'fontconfig/src/fcdefault.c')
-rw-r--r-- | fontconfig/src/fcdefault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fontconfig/src/fcdefault.c b/fontconfig/src/fcdefault.c index b1bd9cc1f..d1217a4dc 100644 --- a/fontconfig/src/fcdefault.c +++ b/fontconfig/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; |