From: Kevin Day Date: Mon, 9 Sep 2019 02:21:26 +0000 (-0500) Subject: Bugfix: last short parameter argument is not being processed correctly X-Git-Tag: 0.5.0~436 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=731c1a45e773426393c7bb6da4ee703720ea1e6d;p=fll Bugfix: last short parameter argument is not being processed correctly For short parameters, only compare against a single character, not two. --- 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; } }