Re: [CODE] [Newbie] two_arguments bug

From: George (greerga@CIRCLEMUD.ORG)
Date: 06/30/98


On Tue, 30 Jun 1998, John Woods wrote:

>ACMD(do_invasion)
>{
>  char *mobtype, *startloc;
>  int value, origin;
>
>  log("Two arguments...");
>  two_arguments(argument, mobtype, startloc);     <---

Your pointers aren't pointing to valid memory.  You need to use malloc() or
a character array.

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://patches.van.ml.org/          | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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