zone: use the correct pointer for Z_Realloc memset

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-04-14 09:57:04 +09:30
parent 1e3502bbf3
commit 1401363a15

View File

@ -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;
}