Re: disguise

From: Nielsen (nielsenje@home.com)
Date: 03/17/01


>       GET_NAME(ch) = GET_NAME(vict);

In the line above, you're assigning the pointer to the victim's name to the
character's name, so when the victim logs out, the pointer will be freed.  This
is why you get garbage characters when you log out.

Change it to:
  GET_NAME(ch) = str_dup(GET_NAME(vict));

And that should fix things up, I think.

> [   Implementor   ][     ] [110] Dust the Implementor
> [   Greater God   ][     ] [109] who the Pilferer

This still doesn't look like correct output to me, correct me if I'm wrong.
Shouldn't the second character listed have the same name as the person he is
disguised as?  Perhaps I'm mistaken.

Good luck!

---
Jon A. Nielsen
Lazarus of Spear of Insanity MUD
http://spear.kilnar.com/
telnet://spear.kilnar.com:1066/

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST