Core/burn/burn_memory.cpp
// call instead of 'malloc'
call instead of 'malloc'
call instead of ' malloc '
UINT8 *BurnMalloc(INT32 size)
{
	for (INT32 i = 0; i < MAX_MEM_PTR; i++)
	{
		if (memptr[i] == NULL) {
			memptr[i] = (UINT8*)malloc(size);
			if (memptr[i] == NULL) {
				bprintf (0, _T("BurnMalloc failed to allocate %d bytes of memory!\n"), size);
				return NULL;
			}
			memset (memptr[i], 0, size); 
			return memptr[i];
		}
	}
	bprintf (0, _T("BurnMalloc called too many times!\n"));
	return NULL; 
}
UINT8 * BurnMalloc ( INT32 size ) { for ( INT32 i = 0 ; i < MAX_MEM_PTR ; i ++ ) { if ( memptr [ i ] == NULL ) { memptr [ i ] = ( UINT8 * ) malloc ( size ) ; if ( memptr [ i ] == NULL ) { bprintf ( 0 , _T ( " \n " ) , size ) ; return NULL ; } memset ( memptr [ i ] , 0 , size ) ; return memptr [ i ] ; } } bprintf ( 0 , _T ( " \n " ) ) ; return NULL ; }
call instead of 'malloc'
call instead of ' malloc '
// set contents to 0 // Freak out!