]> Kevux Git Server - fll/commitdiff
Bugfix: Formatted prints are pulling additional var_arg, resulting in a segfault.
authorKevin Day <thekevinday@gmail.com>
Wed, 6 Oct 2021 23:36:52 +0000 (18:36 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 6 Oct 2021 23:36:52 +0000 (18:36 -0500)
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

index a77e69d2ef6c0c325391e3615595b7ce7744497d..2719d13b6acc8502b5727f43c16b767401064cf0 100644 (file)
@@ -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;