Re: Thnx for memcpy/gdb help :)

From: ShadowLord (dkoepke@california.com)
Date: 04/11/96


On Thu, 11 Apr 1996, Rasmus Rxnlev wrote:

>
> [SNIP]
>   file = fopen(fn,"wt");
>   if (!file)
>   {
>     sprintf(buf, "ERROR: Unable to get filedescriptor in write_alias()");
>     mudlog(buf, NRM, MAX(LVL_JUDGE, GET_INVIS_LEV(ch)), TRUE);
>     return;
>   }
> [END SNIP]

<buf> should be cast as:
char buf [MAX_STRING_LENGTH];

But using <buf> in that instance isn't even neccessary as you can well
see.  Anyway, hope that helps.



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