From: Kevin Day Date: Wed, 6 Oct 2021 23:36:52 +0000 (-0500) Subject: Bugfix: Formatted prints are pulling additional var_arg, resulting in a segfault. X-Git-Tag: 0.5.6~22 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=3d89fd1f38a88be3ae5a506ac63fa986ea49b2ed;p=fll 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. --- 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;