Re: [BUG] [CODE] db.c in load_zone

From: George Greer (greerga@circlemud.org)
Date: 11/11/01


On Mon, 12 Nov 2001, John wrote:

>if (strchr("MOEPD", ZCMD.command) == NULL) { /* a 3-arg command */
>      if (sscanf(ptr, " %d %d %d ", &tmp, &ZCMD.arg1, &ZCMD.arg2) != 3)
> error = 1;
>    } else {
>      if (sscanf(ptr, " %d %d %d %d ", &tmp, &ZCMD.arg1, &ZCMD.arg2,
>   &ZCMD.arg3) != 4)
> error = 1;
>    }
>
>I have always thought that zone commands "MOEPD" has FOUR arguments!!!!

They do. Re-read the conditional. Think "not".

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST