We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c747b commit 295e5d0Copy full SHA for 295e5d0
sycl/source/detail/config.cpp
@@ -106,8 +106,8 @@ void readConfig(bool ForceInitialization) {
106
// Finding the position of '='
107
Position = BufString.find("=");
108
// Checking that the variable name is less than MAX_CONFIG_NAME and more
109
- // than zero character
110
- if ((Position <= MAX_CONFIG_NAME) && (Position > 0)) {
+ // than zero characters
+ if ((Position < MAX_CONFIG_NAME) && (Position > 0)) {
111
// Checking that the value is less than MAX_CONFIG_VALUE and
112
// more than zero character
113
if ((BufString.length() - (Position + 1) <= MAX_CONFIG_VALUE) &&
0 commit comments