mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-07-30 02:00:30 +08:00
fix stringRemoveDelimiter to be able to parse '-h' argument
This commit is contained in:
parent
471dd47f84
commit
3ef8ee1041
@ -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…
x
Reference in New Issue
Block a user