nwnss: keep unicode bootstrap allocation libc-local
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user