Commit Diff


commit - 0fc1ef2d08d9c4c12f9cf7bbb37ab537f4295e80
commit + 4c069210fd4934e5336219e2102e6fd93d3d5eb9
blob - 5d373722a7134a484dfb1355223c8f59b95898cd
blob + 5f7bb39e4b9ecc29ba5dbcf43c0c431a81a07d5d
--- ctlargs.c
+++ ctlargs.c
@@ -93,7 +93,7 @@ step_optreq(char **xargs, char **args, int argc, char 
 	}
 
 	/* copy xargs to args, replace OPT/REQ args with argv past skip */
-	for (i = 0; i < NOPTFILL - 2; i++) {
+	for (i = 0; i < NOPTFILL - 1; i++) {
 		if (xargs[i] == NULL) {
 			args[i] = NULL;
 			if (i > 1)