mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-11-23 16:10:09 +00:00
zone: use the correct pointer for Z_Realloc memset
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
1e3502bbf3
commit
1401363a15
@ -274,8 +274,7 @@ Z_Realloc(const void *ptr, int size)
|
||||
if (ret != ptr)
|
||||
memmove(ret, ptr, qmin(orig_size, size));
|
||||
if (size > orig_size)
|
||||
memset((byte *)ptr + orig_size, 0, size - orig_size);
|
||||
|
||||
memset((byte *)ret + orig_size, 0, size - orig_size);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user