# HG changeset patch # User tron # Date 2005-08-28 14:45:44 # Node ID b437b06601911d283ec98552818476f3d9006a01 # Parent a9ea9754767f15507964b713cd7a55f18bf77f4d (svn r2900) Fix a bug, which incremented the counter of a loop twice and therefore calculated wrong argument indices diff --git a/strgen/strgen.c b/strgen/strgen.c --- a/strgen/strgen.c +++ b/strgen/strgen.c @@ -1006,7 +1006,7 @@ static int TranslateArgumentIdx(int argi 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; }