diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c index 8f158d305c..65a54137ff 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c @@ -320,10 +320,11 @@ ecore_file_app_exe_get(const char *app) len = strlen(homedir); exe = malloc(len + exe2 - exe1 + 2); if (!exe) return NULL; + pp = exe; if (len) { strcpy(exe, homedir); - pp = exe + len; + pp += len; if (*(pp - 1) != '/') { *pp = '/'; @@ -396,5 +397,6 @@ ecore_file_app_exe_get(const char *app) p++; } *pp = 0; + printf("%s\n", exe); return exe; }