diff --git a/src/checkbufferoverrun.cpp b/src/checkbufferoverrun.cpp index 019f67a2d..5c0fedd67 100644 --- a/src/checkbufferoverrun.cpp +++ b/src/checkbufferoverrun.cpp @@ -411,7 +411,8 @@ void CheckBufferOverrun::checkScope(const Token *tok, const char *varname[], con ++fmt; // skip field width - while (std::isdigit(*fmt)) { + while (std::isdigit(*fmt)) + { ++fmt; }