From 3d89fd1f38a88be3ae5a506ac63fa986ea49b2ed Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 6 Oct 2021 18:36:52 -0500 Subject: [PATCH] Bugfix: Formatted prints are pulling additional var_arg, resulting in a segfault. The else condition should not be grabbing an additional argument. Instead, initialize that argument to its default empty value. --- level_1/fl_print/c/private-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_1/fl_print/c/private-print.c b/level_1/fl_print/c/private-print.c index a77e69d..2719d13 100644 --- a/level_1/fl_print/c/private-print.c +++ b/level_1/fl_print/c/private-print.c @@ -262,7 +262,7 @@ extern "C" { } else { const f_array_lengths_t except_at = f_array_lengths_t_initialize; - const f_string_ranges_t except_in = va_arg(*ap, f_string_ranges_t); + const f_string_ranges_t except_in = f_string_ranges_t_initialize; if (partial.start > partial.start) { *status = F_data_not; -- 1.8.3.1