Re: [Circle] do_who help

From: Sammy (
Date: 08/15/96

On Wed, 14 Aug 1996 wrote:

> i've added an elemental to the character file
> ch->player_specials->saved.prefix
> where *prefix is of type char.
> i want to prepend the prefix to the characters name when someone does
> a who, so in do_who, i put in:
>   char *tmp;
> then later on put in 
>   tmp = strcat((wch->player_specials->saved.prefix), (GET_NAME(wch)));

You're tacking a string onto the end of a character variable.  To put it 
another way, you're adding many characters where there's only room for 1.

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

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