Merge branch '2.2' into 2.3

This commit is contained in:
Markus Mäkelä
2019-05-28 14:17:43 +03:00
2 changed files with 14 additions and 7 deletions

View File

@ -1120,7 +1120,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;
}