summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strgen/strgen.c2
1 files changed, 1 insertions, 1 deletions
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;
}