zone.c (Z_Realloc): Fixed the old_size value.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@108 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2010-03-09 12:03:08 +00:00
parent b6fa239014
commit e5df1b24be

View file

@ -147,6 +147,7 @@ void *Z_Realloc(void *ptr, int size)
Sys_Error ("Z_Realloc: realloced a freed pointer"); Sys_Error ("Z_Realloc: realloced a freed pointer");
old_size = block->size; old_size = block->size;
old_size -= (4 + (int)sizeof(memblock_t)); /* see Z_TagMalloc() */
old_ptr = ptr; old_ptr = ptr;
Z_Free (ptr); Z_Free (ptr);