diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-10-23 19:19:30 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-10-23 19:19:30 +0200 |
| commit | 95622ca964ab37dff95e48d9d49c943df06b30d5 (patch) | |
| tree | f64db50dc3659e9d1e6165138da89d63eaee915b /src/wrapped/wrappedlib_init.h | |
| parent | 76b63de7542efe4b0bc56710eece0d0aa3b7579f (diff) | |
| download | box64-95622ca964ab37dff95e48d9d49c943df06b30d5.tar.gz box64-95622ca964ab37dff95e48d9d49c943df06b30d5.zip | |
Forgot a bunch of other box_ malloc/realloc/calloc/free use
Diffstat (limited to 'src/wrapped/wrappedlib_init.h')
| -rwxr-xr-x | src/wrapped/wrappedlib_init.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wrapped/wrappedlib_init.h b/src/wrapped/wrappedlib_init.h index 2b34acab..f6b52668 100755 --- a/src/wrapped/wrappedlib_init.h +++ b/src/wrapped/wrappedlib_init.h @@ -2,6 +2,7 @@ #error Meh #endif +#include "debug.h" #include "librarian/library_inner.h" #define FUNC3(M,N) wrapped##M##N @@ -136,10 +137,10 @@ int FUNC(_init)(library_t* lib, box64context_t* box64) #endif return -1; #ifdef ALTNAME2 - else lib->path = strdup(ALTNAME2); - } else lib->path = strdup(ALTNAME); + else lib->path = box_strdup(ALTNAME2); + } else lib->path = box_strdup(ALTNAME); #endif - } else lib->path = strdup(MAPNAME(Name)); + } else lib->path = box_strdup(MAPNAME(Name)); } WrappedLib_CommonInit(lib); |