From 13cd60688a1a4ecd6ab7ed2670007649ae384b59 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 2 Mar 2024 23:47:30 -0600 Subject: [PATCH] Bugfix: Only add extended next space when there is a next number. --- level_1/fl_fss/c/fss/private-payload.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/level_1/fl_fss/c/fss/private-payload.c b/level_1/fl_fss/c/fss/private-payload.c index c46a713..d29e84f 100644 --- a/level_1/fl_fss/c/fss/private-payload.c +++ b/level_1/fl_fss/c/fss/private-payload.c @@ -1354,8 +1354,10 @@ extern "C" { private_fl_fss_basic_write(F_false, string_static, internal->quote, &internal->range, &destinations->array[destinations->used].value, state, (void * const) internal); if (F_status_is_error(state->status)) return F_true; - state->status = f_string_dynamic_append_assure(f_fss_extended_next_s, data->cache); - if (F_status_is_error(state->status)) return F_true; + if (internal->j + 1 < internal->l) { + state->status = f_string_dynamic_append_assure(f_fss_extended_next_s, &destinations->array[destinations->used].value); + if (F_status_is_error(state->status)) return F_true; + } } else if (data->flag & f_fss_payload_header_map_flag_null_string_e) { state->status = f_string_dynamic_append(internal->quote_null, &destinations->array[destinations->used].value); -- 1.8.3.1