commit b9aa984d561d687318b44afc82661268446f956d from: Stefan Sperling date: Tue Oct 03 06:56:11 2023 UTC fix off-by-one in step_optreq() loop termination condition This makes ctl handlers with 6 arguments work as expected. ok chris commit - 0fc1ef2d08d9c4c12f9cf7bbb37ab537f4295e80 commit + b9aa984d561d687318b44afc82661268446f956d 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)