Re: strdup and redit

From: Mark Garringer (zizazat@hotmail.com)
Date: 09/04/02


>Actually I just fixed that bug yesterday myself. In genwld.c, in
>copy_room_strings(), change:
>
>  dest->description = strdup(source->description);
>to
>  dest->description = strdup(source->description ? source->description :
>"<NULL>");

This works like a champ! Thanks! (Now I don't have to worry about newbie
builders crashing the game every 2 seconds!)

--Ziz


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT