about summary refs log tree commit diff stats
path: root/src/libtools/libc_net32.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-10-13 11:20:25 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-10-13 11:20:25 +0200
commitd31b9c9caa6b28e5c9246dcffc88367ef9d4e8f6 (patch)
tree6bd6fcabb367ee7979ddf1fa0422f0609c81d10a /src/libtools/libc_net32.c
parent2670d37542ddb7b03cc4e12b610f2b686562ee58 (diff)
downloadbox64-d31b9c9caa6b28e5c9246dcffc88367ef9d4e8f6.tar.gz
box64-d31b9c9caa6b28e5c9246dcffc88367ef9d4e8f6.zip
[BOX32] Allow internal memory to be in 32bits space if needed
Diffstat (limited to 'src/libtools/libc_net32.c')
-rw-r--r--src/libtools/libc_net32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtools/libc_net32.c b/src/libtools/libc_net32.c
index 35e1e6a4..c06472fc 100644
--- a/src/libtools/libc_net32.c
+++ b/src/libtools/libc_net32.c
@@ -84,7 +84,7 @@ EXPORT int my32_getaddrinfo(x64emu_t* emu, void* node, void* service, struct i38
         int idx = 0;
         while(p2) {++idx; p2 = p2->ai_next;}
         // doing the malloc!
-        void* r = box_malloc(idx*sizeof(struct i386_addrinfo)+sizeof(void*));
+        void* r = actual_malloc(idx*sizeof(struct i386_addrinfo)+sizeof(void*));
         ptr_t p3 = to_ptrv(r);
         *res = p3;
         p2 = p;
@@ -114,7 +114,7 @@ EXPORT void my32_freeaddrinfo(x64emu_t* emu, void* a) {
     if(!a) return;
     void* orig = *(void**)(a+sizeof(struct i386_addrinfo));
     freeaddrinfo(orig);
-    box_free(a);
+    actual_free(a);
 }
 
 EXPORT void* my32_gethostbyname(x64emu_t* emu, const char* a)