From 4b023b79eddbc487ac4722e27a505fb7a293b35e Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 14 Nov 2019 20:43:58 -0600 Subject: [PATCH] Bugfix: f_overflow should be returned with error bit set --- level_2/fll_fss/c/fss_basic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level_2/fll_fss/c/fss_basic.c b/level_2/fll_fss/c/fss_basic.c index 27ed63b..accd4e7 100644 --- a/level_2/fll_fss/c/fss_basic.c +++ b/level_2/fll_fss/c/fss_basic.c @@ -102,7 +102,7 @@ extern "C" { // If at least some valid object was found, then return f_none equivelents. if (objects->used > initial_used) { - if (status == f_no_data_on_eos) return f_none_on_eos; + if (status == f_no_data_on_eos) return f_none_on_eos; if (status == f_no_data_on_stop) return f_none_on_stop; } @@ -129,7 +129,7 @@ extern "C" { contents->used++; } while (input->start < f_string_max_size); - return f_overflow; + return f_status_is_error(f_overflow); } #endif // _di_fll_fss_basic_read_ -- 1.8.3.1