projects
/
platform
/
upstream
/
fontconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
671bcb3
)
Fix readlink failure
author
Behdad Esfahbod
<behdad@behdad.org>
Fri, 18 Jan 2013 01:27:20 +0000
(19:27 -0600)
committer
Behdad Esfahbod
<behdad@behdad.org>
Fri, 18 Jan 2013 01:27:20 +0000
(19:27 -0600)
As reported by Raimund Steger.
src/fcdefault.c
patch
|
blob
|
history
diff --git
a/src/fcdefault.c
b/src/fcdefault.c
index
b1bd9cc
..
d1217a4
100644
(file)
--- 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;