diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index 2186e1e7b..eaa541d0c 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -228,7 +228,8 @@ void CheckBufferOverrun::arrayIndex() } } -static std::string arrayIndexMessage(const Token *tok, const Variable *var, const ValueFlow::Value *index) { +static std::string arrayIndexMessage(const Token *tok, const Variable *var, const ValueFlow::Value *index) +{ std::string array = tok->astOperand1()->expressionString(); for (const Dimension &dim : var->dimensions()) array += "[" + MathLib::toString(dim.num) + "]";