From 731c1a45e773426393c7bb6da4ee703720ea1e6d Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 8 Sep 2019 21:21:26 -0500 Subject: [PATCH] Bugfix: last short parameter argument is not being processed correctly For short parameters, only compare against a single character, not two. --- level_1/fl_console/c/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_1/fl_console/c/console.c b/level_1/fl_console/c/console.c index c90314e..d0d12ff 100644 --- a/level_1/fl_console/c/console.c +++ b/level_1/fl_console/c/console.c @@ -100,7 +100,7 @@ extern "C" { continue; } - if (strncmp(&arguments.argv[location][sub_location], parameters.parameter[parameter_counter].symbol_short, increment_by + 1) != 0) { + if (arguments.argv[location][sub_location] != *parameters.parameter[parameter_counter].symbol_short) { continue; } } -- 1.8.3.1