nwnss: keep unicode bootstrap allocation libc-local

This commit is contained in:
Mario Fetka
2026-06-19 17:50:45 +00:00
parent dd21708605
commit 884ccdb5cd

View File

@@ -16,7 +16,7 @@
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <library/stdlib.h>
#include <sys/../stdlib.h>
#include <string.h>
#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;