From: Kevin Day Date: Wed, 28 Oct 2020 02:50:53 +0000 (-0500) Subject: Bugfix: FSS Extended List object detection is invalid. X-Git-Tag: 0.5.1~9 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=1c3e4fccc07221d75bfbd14ac53038342d3d08ea;p=fll Bugfix: FSS Extended List object detection is invalid. Not sure how I let this one slip through. The code is checking for an EOL if found checks to see if that EOL is a graph...which is never the case. What I meant to do is more likely breaking on EOL or breaking on graph. --- diff --git a/level_1/fl_fss/c/fss_extended_list.c b/level_1/fl_fss/c/fss_extended_list.c index 1892f93..6743784 100644 --- a/level_1/fl_fss/c/fss_extended_list.c +++ b/level_1/fl_fss/c/fss_extended_list.c @@ -106,12 +106,12 @@ extern "C" { while (range->start <= range->stop && range->start < buffer->used) { - if (buffer->string[range->start] == f_fss_eol) { - status = f_fss_is_graph(*buffer, *range); - if (F_status_is_error(status)) break; + if (buffer->string[range->start] == f_fss_eol) break; - if (status == F_true) break; - } + status = f_fss_is_graph(*buffer, *range); + if (F_status_is_error(status)) break; + + if (status == F_true) break; status = f_utf_buffer_increment(*buffer, range, 1); if (F_status_is_error(status)) break;