[Super-tux-devel] [fwd] supertux 0.0.9 bug
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2003-12-23 21:33:56
|
----- Forwarded message from SixK <dasixk (@@@) free ... fr> ----- Date: Tue, 23 Dec 2003 14:13:16 +0000 From: SixK <dasixk (a t) free DOT fr> Subject: supertux 0.0.9 bug To: bi...@ne... Hi, found a little bug that make supertux 0.09 to crash on morphos (amiga) in gameloop.c function void loadlevelsong(void) you will find : *c*har* song_path = malloc (sizeof(char)*len); please replace this line by: *c*har* song_path = malloc (sizeof(char)*len+1); cause you make a song_path[len]='\0'; and you are out of the allocated area you also have a little probleme in data path : Could not open ./data//levels/level3.dat for level India // is not interpreted as / on all plateforms maybe all this is already corrected, but if not, this should help a little bit thank's for still developping tuxpuck, it can be a cool game. regards, SixK ----- End forwarded message ----- -- bi...@ne... Got kids? Get Tux Paint! http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/tuxpaint/ |