1
0
Fork 0
forked from fte/fteqw

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
This commit is contained in:
Molgrum 2008-05-14 14:55:25 +00:00
parent 533b470bc0
commit 35e951976f

View file

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