From 884ccdb5cd6b9fd5794b0bddbfa35e2c663e2f11 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Fri, 19 Jun 2026 17:50:45 +0000 Subject: [PATCH] nwnss: keep unicode bootstrap allocation libc-local --- src/nwnss/nsslnxlib/unilibUserspace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nwnss/nsslnxlib/unilibUserspace.c b/src/nwnss/nsslnxlib/unilibUserspace.c index fe64a64..738ec69 100644 --- a/src/nwnss/nsslnxlib/unilibUserspace.c +++ b/src/nwnss/nsslnxlib/unilibUserspace.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #ifndef NSS_DEFAULT_CODEPAGE @@ -41,7 +41,7 @@ void mpkExit(void) void *mpkPageAlloc(unsigned int bytes, int flags) { (void)flags; - return zalloc(bytes); + return calloc(1, bytes); } void mpkPageFree(void *ptr) @@ -134,7 +134,7 @@ struct file *kFileOpen(const char *path, int flags, int mode) if (!stream) return NULL; - filep = zalloc(sizeof(*filep)); + filep = calloc(1, sizeof(*filep)); if (!filep) { fclose(stream); return NULL;