about summary refs log tree commit diff stats
path: root/src/librarian
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-10-29 22:32:47 +0200
committerGitHub <noreply@github.com>2022-10-29 22:32:47 +0200
commit0e47d1269cc660d2b1451e76375b2d3545ce66f4 (patch)
tree27c958e5ef3cd147625112a82626624d51fd6fe5 /src/librarian
parent7dc5359c2b10521696e7d251627eff029d53ee28 (diff)
downloadbox64-0e47d1269cc660d2b1451e76375b2d3545ce66f4.tar.gz
box64-0e47d1269cc660d2b1451e76375b2d3545ce66f4.zip
Malloc override (#437)
* Add some malloc override mecanism, but missing c++ function overriding
* Add c++ new/delete redirection too
* Added support for libtbbmalloc_proxy
Diffstat (limited to 'src/librarian')
-rwxr-xr-xsrc/librarian/library.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c
index 951407a9..7baceeca 100755
--- a/src/librarian/library.c
+++ b/src/librarian/library.c
@@ -289,7 +289,7 @@ static int loadEmulatedLib(const char* libname, library_t *lib, box64context_t*
 
         if(lib->path && strcmp(lib->path, libname)) {
             box_free(lib->path);
-            lib->path = realpath(libname, NULL);
+            lib->path = box_realpath(libname, NULL);
             if(!lib->path)
                 lib->path = box_strdup(libname);
         }
@@ -349,7 +349,7 @@ library_t *NewLibrary(const char* path, box64context_t* context)
 {
     printf_log(LOG_DEBUG, "Trying to load \"%s\"\n", path);
     library_t *lib = (library_t*)box_calloc(1, sizeof(library_t));
-    lib->path = realpath(path, NULL);
+    lib->path = box_realpath(path, NULL);
     if(!lib->path)
         lib->path = box_strdup(path);
     if(libGL && !strcmp(path, libGL))
@@ -595,7 +595,7 @@ int IsSameLib(library_t* lib, const char* path)
             ret=1;
     } else {
         char rpath[PATH_MAX];
-        realpath(path, rpath);
+        box_realpath(path, rpath);
         if(!strcmp(rpath, lib->path))
             ret=1;
     }