From 60d828e778d0673143ac0371731c2a8349012af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 8 Dec 2011 22:09:03 +0100 Subject: [PATCH] C++ Builder: Fixed compiler error --- lib/checkbufferoverrun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index f555cd9e1..435cf6a91 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -1243,7 +1243,7 @@ void CheckBufferOverrun::checkGlobalAndLocalVariable() for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) { if (Token::Match(tok, "%str% [ %num% ]")) { std::string str = tok->strValue(); - std::size_t index = atoi(tok->tokAt(2)->str().c_str()); + std::size_t index = std::atoi(tok->tokAt(2)->str().c_str()); if (index > str.length()) { bufferOverrunError(tok, tok->str()); }