On Wed, 14 Aug 1996 goamkows@kirk.geog.sc.edu 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. Sam +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/07/00 PST