diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-07-31 10:32:12 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-08-06 16:10:17 +0200 |
| commit | 2ac265d52951c2951281b25aa0aba3ad21b6565f (patch) | |
| tree | 4c8a08922981a5b279a52c1d8bae1bf7218e4e3d /src/tools/fileutils.c | |
| parent | e261270eb8719a5a2e0c7fd86140390290d49ae9 (diff) | |
| download | box64-2ac265d52951c2951281b25aa0aba3ad21b6565f.tar.gz box64-2ac265d52951c2951281b25aa0aba3ad21b6565f.zip | |
All box internal memory alloc use __libc_ internal one (except on Android, using libc one gather from dlsym)
Diffstat (limited to 'src/tools/fileutils.c')
| -rwxr-xr-x | src/tools/fileutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/fileutils.c b/src/tools/fileutils.c index 5a6c0af8..5631134b 100755 --- a/src/tools/fileutils.c +++ b/src/tools/fileutils.c @@ -45,7 +45,7 @@ char* ResolveFile(const char* filename, path_collection_t* paths) { char p[MAX_PATH]; if(filename[0]=='/') - return strdup(filename); + return box_strdup(filename); for (int i=0; i<paths->size; ++i) { if(paths->paths[i][0]!='/') { // not an absolute path... @@ -60,7 +60,7 @@ char* ResolveFile(const char* filename, path_collection_t* paths) return realpath(p, NULL); } - return strdup(filename); //NULL; + return box_strdup(filename); //NULL; } int FileIsX64ELF(const char* filename) |