From: Kevin Day Date: Sun, 3 Mar 2024 05:47:30 +0000 (-0600) Subject: Bugfix: Only add extended next space when there is a next number. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=13cd60688a1a4ecd6ab7ed2670007649ae384b59;p=fll Bugfix: Only add extended next space when there is a next number. --- 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);