parent
671bcb34e2
commit
6118781f7f
|
@ -148,11 +148,11 @@ retry:
|
||||||
prgname = FcStrdup ("");
|
prgname = FcStrdup ("");
|
||||||
#else
|
#else
|
||||||
char buf[PATH_MAX + 1];
|
char buf[PATH_MAX + 1];
|
||||||
unsigned int len;
|
int len;
|
||||||
char *p = NULL;
|
char *p = NULL;
|
||||||
|
|
||||||
len = readlink ("/proc/self/exe", buf, sizeof (buf) - 1);
|
len = readlink ("/proc/self/exe", buf, sizeof (buf) - 1);
|
||||||
if (len > 0)
|
if (len != -1)
|
||||||
{
|
{
|
||||||
buf[len] = '\0';
|
buf[len] = '\0';
|
||||||
p = buf;
|
p = buf;
|
||||||
|
|
Loading…
Reference in New Issue