From 11de19f00cd24e244d2f6869c64810d63aafb926 Mon Sep 17 00:00:00 2001 From: Rutwik Choughule Date: Tue, 30 Nov 2021 23:42:19 +0530 Subject: [PATCH] update command line argument parsing fix ignoring single letter arguments --- Common/helper_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/helper_string.h b/Common/helper_string.h index 59cf5f79..080f6f7c 100644 --- a/Common/helper_string.h +++ b/Common/helper_string.h @@ -100,7 +100,7 @@ inline int stringRemoveDelimiter(char delimiter, const char *string) { string_start++; } - if (string_start >= static_cast(strlen(string) - 1)) { + if (string_start >= static_cast(strlen(string))) { return 0; }