about summary refs log tree commit diff stats
path: root/src/tools/fileutils.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-07-31 10:32:12 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-08-06 16:10:17 +0200
commit2ac265d52951c2951281b25aa0aba3ad21b6565f (patch)
tree4c8a08922981a5b279a52c1d8bae1bf7218e4e3d /src/tools/fileutils.c
parente261270eb8719a5a2e0c7fd86140390290d49ae9 (diff)
downloadbox64-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-xsrc/tools/fileutils.c4
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)