]> Kevux Git Server - fll/commitdiff
Bugfix: last short parameter argument is not being processed correctly
authorKevin Day <thekevinday@gmail.com>
Mon, 9 Sep 2019 02:21:26 +0000 (21:21 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 9 Sep 2019 02:29:02 +0000 (21:29 -0500)
For short parameters, only compare against a single character, not two.

level_1/fl_console/c/console.c

index c90314e9145ac211df2dcc8e6794998e345366f0..d0d12ff01b8d8c7887c54690f7b11580da39a4d0 100644 (file)
@@ -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;
               }
             }