diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-14 15:37:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-14 15:37:20 +0000 |
commit | 737d167750f61b3307a7b86abc30041924e5eea6 (patch) | |
tree | 57401c93984a3c859caaf77b4d64fd9402be620c /src | |
parent | 505322a5252f6ecffe3ee99ddc41df71db13fd06 (diff) |
stack corruption fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@12814 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/utils/timezones.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/utils/timezones.cpp b/src/modules/utils/timezones.cpp index e2c271c140..9c7d3804ab 100644 --- a/src/modules/utils/timezones.cpp +++ b/src/modules/utils/timezones.cpp @@ -444,8 +444,8 @@ static INT_PTR TimestampToStringA(WPARAM wParam, LPARAM lParam) {
DBTIMETOSTRING *tts = (DBTIMETOSTRING*)lParam;
if (tts != NULL) {
- TCHAR *szDest = (TCHAR*)alloca(tts->cbDest);
- timeapiPrintTimeStamp(NULL, (mir_time)wParam, StrConvT(tts->szFormat), szDest, tts->cbDest, 0);
+ TCHAR *szDest = (TCHAR*)alloca(tts->cbDest*sizeof(TCHAR));
+ timeapiPrintTimeStamp(NULL, (mir_time)wParam, _A2T(tts->szFormat), szDest, tts->cbDest, 0);
WideCharToMultiByte(CP_ACP, 0, szDest, -1, tts->szDest, tts->cbDest, NULL, NULL);
}
return 0;
|