Re: [CODE] Crashing

From: Sammy (samedi@DHC.NET)
Date: 04/01/98

On Fri, 27 Mar 1998, Fili wrote:

> Suggestion:
> >   char buf[MAX_STRING_LENGTH];
>             ^^^^^^^^^^^^^^^^^^^^
> Change to char *buf;
> That should add some length to the string.

Sure.  Unlimited length, as long as you don't need any of the memory after
the location buf is randomly assigned to.

Try printing sizeof(buf) to see exactly how many bytes of memory you get.


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

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