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

@ -520,7 +520,7 @@ BOOL LSLog(int nLevel, LPCTSTR pszModule, LPCTSTR pszMessage)
{
startTime = time;
}
WCHAR buffer[MAX_PATH];
WCHAR buffer[128];
swprintf(buffer, L"(%02i:%02i:%02i.%03i) ", (time - startTime) / (1000 * 60* 60), ((time - startTime) / (1000 * 60)) % 60, ((time - startTime) / 1000) % 60, (time - startTime) % 1000);
std::wstring message(buffer);