diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-10-29 22:32:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-29 22:32:47 +0200 |
| commit | 0e47d1269cc660d2b1451e76375b2d3545ce66f4 (patch) | |
| tree | 27c958e5ef3cd147625112a82626624d51fd6fe5 /src/librarian | |
| parent | 7dc5359c2b10521696e7d251627eff029d53ee28 (diff) | |
| download | box64-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-x | src/librarian/library.c | 6 |
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; } |