[CODE] Bugfix

From: Drago's (creed@I-55.COM)
Date: 01/17/98


Ok, I have tried every which way with all the code thats been sent and my
mud just doesn't want to take the character duping bugfix.  It WILL cause a
segmentation fault anywhere GET_NAME(dt->character) is called even if it's
like:

    if(GET_NAME(dt->character) && !strcmp(GET_NAME(dt->character), newname))

I have no idea what is causing this.  I use Red Hat 5 and bpl11 and here's
the gdb stuff:

#0  0x80627c6 in Valid_Name (newname=0xbffff618 "groopy") at ban.c:252
#1  0x807138c in nanny (d=0x8146720, arg=0xbffff818 "groopy")
    at interpreter.c:1398
#2  0x804a486 in game_loop (mother_desc=3) at comm.c:634
#3  0x8049b07 in init_game (port=6002) at comm.c:255
#4  0x8049a98 in main (argc=2, argv=0xbffffd94) at comm.c:225

Line 252 of ban.c is just the simple:

   if(GET_NAME(dt->character))

HELP! :P

Chuck Reed


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST