Skip to content

Commit

Permalink
update command line argument parsing
Browse files Browse the repository at this point in the history
fix ignoring single letter arguments
  • Loading branch information
Ru7w1k committed Nov 30, 2021
1 parent 471dd47 commit 11de19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/helper_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ inline int stringRemoveDelimiter(char delimiter, const char *string) {
string_start++;
}

if (string_start >= static_cast<int>(strlen(string) - 1)) {
if (string_start >= static_cast<int>(strlen(string))) {
return 0;
}

Expand Down

0 comments on commit 11de19f

Please sign in to comment.