# HG changeset patch # User Teemu Piippo # Date 1346012889 -10800 # Node ID dc5db6335601c5d104067a655f75fdb91c215d5f # Parent 0557babc86752805d7215891e510e1a6b3814a6f Fixed: parser allowed command calls with one too few arguments diff -r 0557babc8675 -r dc5db6335601 parser.cxx --- a/parser.cxx Sun Aug 26 23:18:59 2012 +0300 +++ b/parser.cxx Sun Aug 26 23:28:09 2012 +0300 @@ -678,7 +678,7 @@ int curarg = 0; while (1) { if (!token.compare (")")) { - if (curarg < comm->numargs - 1) + if (curarg < comm->numargs) ParserError ("too few arguments passed to %s\n", comm->name.chars()); break; curarg++;