View Single Post
  #3  
Old 11-13-2003, 05:16 PM
kate
Fire Beetle
 
Join Date: Nov 2002
Posts: 10
Default Updated Fix

Ok, you may be right, but I found a way that works.

insited of using:
Code:
char *buffer=(char*)malloc(pack2->size);
use:
Code:
uchar *buffer = new uchar[pack2->size];
That is a more currect C++ way of doing it then even using malloc.

then under that line change:
Code:
char *bufptr=buffer;
to:
Code:
uchar *bufptr=buffer;
Then at the end of the function change:
Code:
free(buffer);
Over to:
Code:
safe_delete(buffer);
Anyway, that works under linux and windows, and still seems to fix the crash bug, good luck.
Reply With Quote