From d4986e57ae5db5ac9613716074b74a48adbf3da4 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 9 Feb 2022 21:45:28 -0600 Subject: [PATCH] Bugfix: The prepend option is being incorrectly applied. This is a bug that results from a naming context conflict where the "prepend" string must be "appended" to the buffer. The f_string_dynamic_append() should be called instead of f_string_dynamic_prepend(). --- level_1/fl_fss/c/fss_basic_list.c | 6 +++--- level_1/fl_fss/c/fss_embedded_list.c | 6 +++--- level_1/fl_fss/c/fss_extended_list.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/level_1/fl_fss/c/fss_basic_list.c b/level_1/fl_fss/c/fss_basic_list.c index 07b4980..5e7e3a2 100644 --- a/level_1/fl_fss/c/fss_basic_list.c +++ b/level_1/fl_fss/c/fss_basic_list.c @@ -827,7 +827,7 @@ extern "C" { slash_count = 1; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -895,7 +895,7 @@ extern "C" { start = range->start++; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -951,7 +951,7 @@ extern "C" { if (content.string[range->start] != f_fss_delimit_placeholder_s.string[0]) { if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; diff --git a/level_1/fl_fss/c/fss_embedded_list.c b/level_1/fl_fss/c/fss_embedded_list.c index e67e8bc..3eb6d88 100644 --- a/level_1/fl_fss/c/fss_embedded_list.c +++ b/level_1/fl_fss/c/fss_embedded_list.c @@ -1269,7 +1269,7 @@ extern "C" { slash_count = 1; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -1350,7 +1350,7 @@ extern "C" { start = range->start++; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -1425,7 +1425,7 @@ extern "C" { if (content.string[range->start] != f_fss_delimit_placeholder_s.string[0]) { if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; diff --git a/level_1/fl_fss/c/fss_extended_list.c b/level_1/fl_fss/c/fss_extended_list.c index 9b4509a..eee94f6 100644 --- a/level_1/fl_fss/c/fss_extended_list.c +++ b/level_1/fl_fss/c/fss_extended_list.c @@ -827,7 +827,7 @@ extern "C" { slash_count = 1; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -906,7 +906,7 @@ extern "C" { start = range->start++; if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; @@ -983,7 +983,7 @@ extern "C" { if (content.string[range->start] != f_fss_delimit_placeholder_s.string[0]) { if (do_prepend) { - status = f_string_dynamic_prepend(*prepend, destination); + status = f_string_dynamic_append(*prepend, destination); if (F_status_is_error(status)) break; do_prepend = F_false; -- 1.8.3.1