Re: Dup Bug Revisited

From: George (greerga@CIRCLEMUD.ORG)
Date: 01/22/98


On Thu, 22 Jan 1998, Cris Jacobin wrote:

>[...] if (GET_NAME(dt->character) && !str_cmp(GET_NAME(dt->character),newn
>(gdb) print *dt
>$1 = {descriptor = 30, host = "206.173.140.123", '\000' <repeats 15 times>,
[...]
>  large_outbuf = 0x0, input = {head = 0x0, tail = 0x0}, character = 0x0,
[...]

The problem is 'Valid_Name' is called before you have a character. Note the
'0x0'.  I see you have the ANSI color snippet installed.  Check your
nanny.c and make sure 'Valid_Name' is called *only* at the GET_NAME step.
The patch may not have applied entirely correctly either, did you see 'fuzz
factor'? That almost always means something went wrong. :)

Anyone without that color snippet seeing the problem?

(perhaps I should add a dt->character check...but at that point, you
*should* have one.)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


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