Borland C++: Fixed compiler errors

This commit is contained in:
Daniel Marjamäki 2009-10-10 09:16:33 +02:00
parent 67f53661a9
commit 1445090f29
1 changed files with 2 additions and 2 deletions

View File

@ -849,9 +849,9 @@ int CheckBufferOverrun::countSprintfLength(const std::string &input_string, cons
digits_string = digits_string.substr(1, digits_string.size());
int tempDigits = 0;
if (check_for_i_d_x_f == 1)
tempDigits = std::max(abs(atoi(digits_string.c_str())), 1);
tempDigits = std::max(std::abs(std::atoi(digits_string.c_str())), 1);
else
tempDigits = abs(atoi(digits_string.c_str()));
tempDigits = std::abs(std::atoi(digits_string.c_str()));
if (tempDigits < parameterLength)
digits += parameterLength;