From: Kevin Day Date: Sun, 5 Sep 2021 21:32:56 +0000 (-0500) Subject: Bugfix: FSS Basic and Extended List Read -a -n -l parameter fails to work as expected. X-Git-Tag: 0.5.5~6 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=d9d246e25eccbdd3020a0023805d7d3772371ca2;p=fll Bugfix: FSS Basic and Extended List Read -a -n -l parameter fails to work as expected. When -a, -n, and -l are used at the same time, the line position ends up being the wrong position within the file. The -l (--line) should be relative to the --at index relative to the --name given. This turned out to be a simple mistake where the wrong variable was being passed. --- diff --git a/level_3/fss_basic_list_read/c/private-fss_basic_list_read.c b/level_3/fss_basic_list_read/c/private-fss_basic_list_read.c index 4e84259..67797e2 100644 --- a/level_3/fss_basic_list_read/c/private-fss_basic_list_read.c +++ b/level_3/fss_basic_list_read/c/private-fss_basic_list_read.c @@ -486,7 +486,7 @@ extern "C" { if (data->option & fss_basic_list_read_data_option_line) { f_array_length_t line = 0; - status = fss_basic_list_read_process_at_line(at, *delimits_object, *delimits_content, main, data, &line); + status = fss_basic_list_read_process_at_line(i, *delimits_object, *delimits_content, main, data, &line); if (status == F_success) return F_none; } else if (data->option & fss_basic_list_read_data_option_columns) { diff --git a/level_3/fss_extended_list_read/c/private-fss_extended_list_read.c b/level_3/fss_extended_list_read/c/private-fss_extended_list_read.c index 2ed16c0..7f7d1e9 100644 --- a/level_3/fss_extended_list_read/c/private-fss_extended_list_read.c +++ b/level_3/fss_extended_list_read/c/private-fss_extended_list_read.c @@ -488,7 +488,7 @@ extern "C" { if (data->option & fss_extended_list_read_data_option_line) { f_array_length_t line = 0; - status = fss_extended_list_read_process_at_line(at, *delimits_object, *delimits_content, main, data, &line); + status = fss_extended_list_read_process_at_line(i, *delimits_object, *delimits_content, main, data, &line); if (status == F_success) return F_none; } else if (data->option & fss_extended_list_read_data_option_columns) {