From a02ee8ffda354231316d950ea4bdf457e075e4c4 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 28 Aug 2005 14:45:44 +0000 Subject: (svn r2900) Fix a bug, which incremented the counter of a loop twice and therefore calculated wrong argument indices --- strgen/strgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strgen') diff --git a/strgen/strgen.c b/strgen/strgen.c index abe879f68..719f91833 100644 --- a/strgen/strgen.c +++ b/strgen/strgen.c @@ -1006,7 +1006,7 @@ static int TranslateArgumentIdx(int argidx) Fatal("invalid argidx %d", argidx); for(i = sum = 0; i < argidx; i++) { - const CmdStruct *cs = _cur_pcs.cmd[i++]; + const CmdStruct *cs = _cur_pcs.cmd[i]; sum += cs ? cs->consumes : 1; } -- cgit v1.2.3-70-g09d2