diff options
Diffstat (limited to 'src/tools/fileutils.c')
| -rwxr-xr-x | src/tools/fileutils.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tools/fileutils.c b/src/tools/fileutils.c index 67e8c652..04905c04 100755 --- a/src/tools/fileutils.c +++ b/src/tools/fileutils.c @@ -57,11 +57,8 @@ char* ResolveFile(const char* filename, path_collection_t* paths) } else strcpy(p, paths->paths[i]); strcat(p, filename); - if(FileExist(p, IS_FILE)) { - char p2[MAX_PATH]; - realpath(p, p2); - return box_strdup(p2); - } + if(FileExist(p, IS_FILE)) + return box_realpath(p, NULL); } return box_strdup(filename); //NULL; |