mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
(libchdr) Resync against c05c91300a (diff-b4791a43102472fe8d3959f86bd376c4)
This commit is contained in:
parent
9e9fb47c05
commit
d2afef58d7
@ -88,7 +88,7 @@ static void *lzma_fast_alloc(void *p, size_t size)
|
||||
}
|
||||
|
||||
/* alloc a new one and put it into the list */
|
||||
addr = (uint32_t *)malloc(sizeof(uint32_t) * (size + sizeof(uint32_t)));
|
||||
addr = (uint32_t *)malloc(sizeof(uint32_t) * size + sizeof(uintptr_t));
|
||||
if (!addr)
|
||||
return NULL;
|
||||
|
||||
|
@ -263,7 +263,7 @@ voidpf zlib_fast_alloc(voidpf opaque, uInt items, uInt size)
|
||||
}
|
||||
|
||||
/* alloc a new one */
|
||||
ptr = (UINT32 *)malloc(size + sizeof(UINT32));
|
||||
ptr = (UINT32 *)malloc(size + sizeof(uintptr_t));
|
||||
if (!ptr)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user