1
0

Replaced atoi() with StringToInteger().

This commit is contained in:
Mattes D
2015-01-25 16:25:15 +01:00
parent f243aa387c
commit 6ec5e8caa7
5 changed files with 11 additions and 9 deletions

View File

@@ -55,7 +55,10 @@ void cHTTPMessage::AddHeader(const AString & a_Key, const AString & a_Value)
}
else if (Key == "content-length")
{
m_ContentLength = static_cast<size_t>(atol(m_Headers[Key].c_str()));
if (!StringToInteger(m_Headers[Key], m_ContentLength))
{
m_ContentLength = 0;
}
}
}