From: kub Date: Wed, 21 Apr 2021 19:55:13 +0000 (+0200) Subject: libretro, fix mmap replacement (content intialized to 0) X-Git-Tag: v2.00~544 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=083c519ec2249fb503a3b596cdd162c1f24d43e3;p=picodrive.git libretro, fix mmap replacement (content intialized to 0) --- diff --git a/platform/libretro/libretro.c b/platform/libretro/libretro.c index 8a00d811..0969017b 100644 --- a/platform/libretro/libretro.c +++ b/platform/libretro/libretro.c @@ -353,7 +353,7 @@ static void munmap(void *addr, size_t length) void* mmap(void *desired_addr, size_t len, int mmap_prot, int mmap_flags, int fildes, size_t off) { - return malloc(len); + return calloc(1, len); } void munmap(void *base_addr, size_t len)