From: Kevin Day Date: Sun, 15 May 2022 22:49:51 +0000 (-0500) Subject: Bugfix: Previous commit overlooked the counter resulting in some replacements not... X-Git-Tag: 0.5.10~123 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=e0351ba9fea07004b0d646b13ecd06031a139507;p=fll 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". --- 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];