MXS-2507: Fix avrorouter token processing
The token comparison function did the comparison wrong: The token needs to be an exact match instead of a partial one.
This commit is contained in:
parent
6e6ab07642
commit
387bf0ccc2
@ -1273,7 +1273,7 @@ static bool token_is_keyword(const char* tok, int len)
|
||||
{
|
||||
for (int i = 0; keywords[i]; i++)
|
||||
{
|
||||
if (strncasecmp(keywords[i], tok, len) == 0)
|
||||
if (strncasecmp(keywords[i], tok, len) == 0 && strlen(keywords[i]) == len)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user