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 = "", '\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  -   | Genius may have its limitations, but stupidity | is not thus handicapped. -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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