diff --git a/Quake/zone.c b/Quake/zone.c index 4c1b708a..94eec3ee 100644 --- a/Quake/zone.c +++ b/Quake/zone.c @@ -238,6 +238,8 @@ void *Z_Realloc(void *ptr, int size) if (ptr != old_ptr) memmove (ptr, old_ptr, q_min(old_size, size)); + if (old_size < size) + memset ((byte *)ptr + old_size, 0, size - old_size); return ptr; }