From 3ef8ee104145b1c666f2be6c421adf2277ed90c5 Mon Sep 17 00:00:00 2001 From: Liwei Dai Date: Tue, 30 Nov 2021 19:34:00 +0800 Subject: [PATCH] fix stringRemoveDelimiter to be able to parse '-h' argument --- 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; }