From 35e951976f8fad37957e0f72fed451f0f90b5c89 Mon Sep 17 00:00:00 2001 From: Molgrum Date: Wed, 14 May 2008 14:55:25 +0000 Subject: [PATCH] Fix for TimeServ's recent codebreak, I have no idea if he meant this but it works for me. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2957 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/zone.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/common/zone.c b/engine/common/zone.c index 29a42ba66..286ff0a8d 100644 --- a/engine/common/zone.c +++ b/engine/common/zone.c @@ -278,7 +278,7 @@ void *Z_Realloc(void *data, int newsize) void *BZF_Malloc(int size) //BZ_Malloc but allowed to fail - like straight malloc. { - return malloc(size, 1); + return calloc(size, 1); } void *BZ_Malloc(int size) //Doesn't clear. The expectation is a large file, rather than sensative data structures. @@ -2193,4 +2193,5 @@ void Memory_DeInit(void) zonelock = NULL; } #endif -} \ No newline at end of file +} +