From: Kevin Day Date: Wed, 13 Jul 2022 12:05:32 +0000 (-0500) Subject: Bugfix: Delimits are not being applied for IKI variables. X-Git-Tag: 0.6.0~59 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=30053695a7bd6f29ae6b6553a10c6ec37d134adb;p=fll Bugfix: Delimits are not being applied for IKI variables. The controller program is not applying the delimits for would-be-valid IKI variables. This becomes a huge problem when these would-be-valid IKI variables are passed to the fake program. If the would-be-valid IKI variables are properly delimited, then the fake program would see them as valid IKI variables. --- diff --git a/level_3/controller/c/rule/private-rule.c b/level_3/controller/c/rule/private-rule.c index 7ae1c89..1b48e9d 100644 --- a/level_3/controller/c/rule/private-rule.c +++ b/level_3/controller/c/rule/private-rule.c @@ -162,6 +162,11 @@ extern "C" { return status; } + + // Apply the IKI delimits to the buffer. + for (f_array_length_t j = 0; j < action->ikis.array[action->ikis.used].delimits.used; ++j) { + action->parameters.array[action->parameters.used].string[action->ikis.array[action->ikis.used].delimits.array[j]] = f_iki_syntax_placeholder_s.string[0]; + } // for } ++action->parameters.used; @@ -311,6 +316,11 @@ extern "C" { return status; } + + // Apply the IKI delimits to the buffer. + for (f_array_length_t j = 0; j < actions->array[actions->used].ikis.array[0].delimits.used; ++j) { + actions->array[actions->used].parameters.array[0].string[actions->array[actions->used].ikis.array[0].delimits.array[j]] = f_iki_syntax_placeholder_s.string[0]; + } // for } actions->array[actions->used].ikis.used = 1; @@ -621,6 +631,11 @@ extern "C" { return status; } + + // Apply the IKI delimits to the buffer. + for (f_array_length_t j = 0; j < actions->array[actions->used].ikis.array[0].delimits.used; ++j) { + actions->array[actions->used].parameters.array[0].string[actions->array[actions->used].ikis.array[0].delimits.array[j]] = f_iki_syntax_placeholder_s.string[0]; + } // for } actions->array[actions->used].ikis.used = 1;