From: Kevin Day Date: Sat, 26 Sep 2020 21:06:21 +0000 (-0500) Subject: Bugfix: use correct variable name. X-Git-Tag: 0.5.1~57 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=d649059b8282e2ae2f55fea0443edb4ba7a78e17;p=fll Bugfix: use correct variable name. --- 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]);