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:
parent
533b470bc0
commit
35e951976f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue