forked from enlightenment/efl
parent
6839e85061
commit
3d6e558b87
|
@ -320,10 +320,11 @@ ecore_file_app_exe_get(const char *app)
|
||||||
len = strlen(homedir);
|
len = strlen(homedir);
|
||||||
exe = malloc(len + exe2 - exe1 + 2);
|
exe = malloc(len + exe2 - exe1 + 2);
|
||||||
if (!exe) return NULL;
|
if (!exe) return NULL;
|
||||||
|
pp = exe;
|
||||||
if (len)
|
if (len)
|
||||||
{
|
{
|
||||||
strcpy(exe, homedir);
|
strcpy(exe, homedir);
|
||||||
pp = exe + len;
|
pp += len;
|
||||||
if (*(pp - 1) != '/')
|
if (*(pp - 1) != '/')
|
||||||
{
|
{
|
||||||
*pp = '/';
|
*pp = '/';
|
||||||
|
@ -396,5 +397,6 @@ ecore_file_app_exe_get(const char *app)
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
*pp = 0;
|
*pp = 0;
|
||||||
|
printf("%s\n", exe);
|
||||||
return exe;
|
return exe;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue