From c1a558f7d0c1e6c1ffa5a47d557a7b45205eef1d Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 13 Sep 2014 03:15:21 +0200 Subject: [PATCH] fix a copy/paste bug leading to a bad loop limitation https://dev.openwrt.org/ticket/17864 Signed-off-by: John Crispin --- inittab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inittab.c b/inittab.c index 677ec47..c8540b1 100644 --- a/inittab.c +++ b/inittab.c @@ -279,7 +279,7 @@ void procd_inittab(void) }; tok = strtok(tags[TAG_PROCESS], " "); - for (i = 0; i < (MAX_ARGS - i - 1) && tok; i++) { + for (i = 0; i < (MAX_ARGS - 1) && tok; i++) { a->argv[i] = tok; tok = strtok(NULL, " "); } -- 2.25.1