Re: str_cmp / strcasecmp (strdup!)

From: George Greer (greerga@circlemud.org)
Date: 09/05/02


On Wed, 4 Sep 2002, Mark Garringer wrote:

>I hate to dust off a super old thread, but I am about to loose my mind with
>some NULL crashing strdup crap!!!!!
>
>I'm running on SUSE 8.0, and I keep having problems with redit crashing if
>you try to save an empty room desc.
>
>Something like...
>
>(gdb) bt
>#0  0x400d08ba in strdup () from /lib/libc.so.6
>#1  0x08080c6f in copy_room_strings (dest=0x8100028, source=0x8137350)
>    at genwld.c:429

room->description and room->name should never be NULL.  If Oasis didn't
crash, CircleMUD would as soon as you tried to use the room.  So figure out
why those are NULL, or add a check to fix them up in c_r_s() if you just
want it to stop.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | 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