mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 12:29:16 +08:00
update command line argument parsing
fix ignoring single letter arguments
This commit is contained in:
parent
471dd47f84
commit
11de19f00c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user