diff --git a/src/checkmemoryleak.cpp b/src/checkmemoryleak.cpp index 2a189a082..e6e5976a2 100644 --- a/src/checkmemoryleak.cpp +++ b/src/checkmemoryleak.cpp @@ -391,7 +391,7 @@ Token *CheckMemoryLeakClass::getcode(const Token *tok, std::list if (sz > 1 && Token::Match(tok->tokAt(2), "malloc ( %num% )") && - (atoi(tok->strAt(4)) % sz) != 0) + (std::atoi(tok->strAt(4)) % sz) != 0) { ErrorMessage::mismatchSize(_errorLogger, _tokenizer, tok->tokAt(4), tok->strAt(4)); }