Shrunk some string buffer size.

This commit is contained in:
spx
2010-09-13 20:06:52 +00:00
parent 27b07f653c
commit 2cb88b0733
10 changed files with 28 additions and 29 deletions

View File

@ -586,7 +586,7 @@ void CMeasureNet::ResetStats()
*/
void CMeasureNet::ReadStats(const std::wstring& iniFile)
{
WCHAR buffer[256];
WCHAR buffer[64];
int count = GetPrivateProfileInt(L"Statistics", L"NetStatsCount", 0, iniFile.c_str());
c_StatValues.clear();
@ -621,8 +621,8 @@ void CMeasureNet::ReadStats(const std::wstring& iniFile)
*/
void CMeasureNet::WriteStats(const std::wstring& iniFile)
{
WCHAR buffer[256];
WCHAR buffer2[256];
WCHAR buffer[32];
WCHAR buffer2[64];
wsprintf(buffer, L"%i", c_StatValues.size() / 2);
WritePrivateProfileString(L"Statistics", L"NetStatsCount", buffer, iniFile.c_str());