(svn r2900) Fix a bug, which incremented the counter of a loop twice and therefore calculated wrong argument indices
authortron
Sun, 28 Aug 2005 14:45:44 +0000
changeset 2374 e4443eab6293
parent 2373 e073ec69bf56
child 2375 8cb43bb74d0e
(svn r2900) Fix a bug, which incremented the counter of a loop twice and therefore calculated wrong argument indices
strgen/strgen.c
--- a/strgen/strgen.c	Sun Aug 28 12:24:57 2005 +0000
+++ b/strgen/strgen.c	Sun Aug 28 14:45:44 2005 +0000
@@ -1006,7 +1006,7 @@
 		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;
 	}