From: John Crispin Date: Sat, 13 Sep 2014 01:15:21 +0000 (+0200) Subject: fix a copy/paste bug leading to a bad loop limitation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c1a558f7d0c1e6c1ffa5a47d557a7b45205eef1d;p=project%2Fprocd.git fix a copy/paste bug leading to a bad loop limitation https://dev.openwrt.org/ticket/17864 Signed-off-by: John Crispin --- 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, " "); }