From e0351ba9fea07004b0d646b13ecd06031a139507 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 15 May 2022 17:49:51 -0500 Subject: [PATCH] Bugfix: Previous commit overlooked the counter resulting in some replacements not being processed. Oops! This is what I get for rushing this out with little testing and review. The problem here is that the "+3" is for the 3 parameter option "--substitute". The 2 parameter option "--replace" must instead use "+2". --- level_3/iki_read/c/private-read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_3/iki_read/c/private-read.c b/level_3/iki_read/c/private-read.c index af4c035..e438dd7 100644 --- a/level_3/iki_read/c/private-read.c +++ b/level_3/iki_read/c/private-read.c @@ -594,7 +594,7 @@ extern "C" { f_console_parameter_t *parameter = &data->main->parameters.array[iki_read_parameter_replace_e]; - for (; i < parameter->values.used; i += 3) { + for (; i < parameter->values.used; i += 2) { index = parameter->values.array[i]; -- 1.8.3.1