Re: [CODE] [Newbie] two_arguments bug

From: Ron Cole (rcole@SHELL.EZY.NET)
Date: 06/30/98


>   char *mobtype, *startloc;

static char mobtype[MAX_INPUT_LENGTH], startloc[MAX_INPUT_LENGTH]

You are declaring string pointers but no storage for the strings
themselves.  The 'static' is optional depending on whether you want
speed or low memory usage.  George would probably recommend dynamic
buffers instead... :-)

Ron


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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