mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
libretro, fix mmap replacement (content intialized to 0)
This commit is contained in:
parent
7fe2d3d33f
commit
083c519ec2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
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)
|
void munmap(void *base_addr, size_t len)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue