diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index 8ba87b2c3..c6c1ad836 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -254,7 +254,7 @@ void CheckBufferOverrun::arrayIndexError(const Token *tok, const Variable *var, reportError(getErrorPath(tok, index, "Array index out of bounds"), index->errorSeverity() ? Severity::error : Severity::warning, - index->condition ? "arrayIndexOutOfBounds" : "arrayIndexOutOfBoundsCond", + index->condition ? "arrayIndexOutOfBoundsCond" : "arrayIndexOutOfBounds", arrayIndexMessage(tok, var, index), CWE788, index->isInconclusive());