From: David Wiklund (mathrim@HEM1.PASSAGEN.SE)
Date: 05/09/98

Well... as I did it is as follows.

sprintf(buf, "...."); <--- first line
sprintf(buf, "%s...",buf); <--- Like this in the following lines.

Now you don't owerwrite the buf :) (or you do but wtf close enough :P)

Hope this helps...

        YT 7David Wiklund
"And Jesus wept!" - Hellraiser 1

At 20:03 1998-05-09 +0200, you wrote:
>You are overwriting buf each time you use sprintf (buf, .....).
>Try using sprintf (buf, ....) the first time you use it in a function.
>Then always use strcat, or sprintf (buf+strlen(buf)).
>Afetr that, send_to_char (buf, ch);
>Hope this helps.
>Carlo Mocci
> 4000

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

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