From d9d246e25eccbdd3020a0023805d7d3772371ca2 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 5 Sep 2021 16:32:56 -0500 Subject: [PATCH] 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. --- level_3/fss_basic_list_read/c/private-fss_basic_list_read.c | 2 +- level_3/fss_extended_list_read/c/private-fss_extended_list_read.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.8.3.1