From d649059b8282e2ae2f55fea0443edb4ba7a78e17 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 26 Sep 2020 16:06:21 -0500 Subject: [PATCH] Bugfix: use correct variable name. --- level_2/fll_error/c/error.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/level_2/fll_error/c/error.c b/level_2/fll_error/c/error.c index ba7ed8a..b3946d7 100644 --- a/level_2/fll_error/c/error.c +++ b/level_2/fll_error/c/error.c @@ -112,7 +112,7 @@ extern "C" { if (status == F_file_open) { fl_color_print(error.to.stream, error.context, "%s%sUnable to open the file '", error.context.before->string, error.prefix ? error.prefix : ""); - fl_color_print(error.to.stream, error.notable, "%s", file_name); + fl_color_print(error.to.stream, error.notable, "%s", name); fl_color_print(error.to.stream, error.context, "'."); fprintf(error.to.stream, "%c", f_string_eol[0]); @@ -121,8 +121,8 @@ extern "C" { if (status == F_file_descriptor) { fl_color_print(error.to.stream, error.context, "%s%sFile descriptor error while trying to open the file '", error.context.before->string, error.prefix ? error.prefix : ""); - fl_color_print(error.to.stream.to.stream, error.notable, "%s", file_name); - fl_color_print(stream, error.context, "'."); + fl_color_print(error.to.stream, error.notable, "%s", name); + fl_color_print(error.to.stream, error.context, "'."); fprintf(error.to.stream, "%c", f_string_eol[0]); return F_false; @@ -130,7 +130,7 @@ extern "C" { if (status == F_number_underflow) { fl_color_print(error.to.stream, error.context, "%s%sInteger underflow while trying to buffer the file '", error.context.before->string, error.prefix ? error.prefix : ""); - fl_color_print(error.to.stream, error.notable, "%s", file_name); + fl_color_print(error.to.stream, error.notable, "%s", name); fl_color_print(error.to.stream, error.context, "'."); fprintf(error.to.stream, "%c", f_string_eol[0]); -- 1.8.3.1