diff --git a/usermods/customeffects/arti.h b/usermods/customeffects/arti.h index 100cc2d3..5345e55b 100644 --- a/usermods/customeffects/arti.h +++ b/usermods/customeffects/arti.h @@ -681,7 +681,7 @@ class Lexer { for (JsonPair tokenPair: definitionJson["TOKENS"].as()) { const char * value = tokenPair.value(); - char currentValue[charLength]; + char currentValue[charLength+1]; strncpy(currentValue, this->text + this->pos, charLength); currentValue[strlen(value)] = '\0'; if (strcmp(value, currentValue) == 0 && strlen(value) > longestTokenLength) {