diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-09 19:55:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-09 19:55:34 +0000 |
commit | c4a2507e68bd2040e5944ccbbafb87ea6196fe06 (patch) | |
tree | 393c41cb88601434d8f47d3ebb93d163de95a470 /plugins/TabSRMM/src/chat/log.cpp | |
parent | abb55ccf0e13f077d976777c6e16b9a7bc889821 (diff) |
- memory corruption in [img] button;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@6037 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/log.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat/log.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat/log.cpp b/plugins/TabSRMM/src/chat/log.cpp index 96c049f032..14b9236cd0 100644 --- a/plugins/TabSRMM/src/chat/log.cpp +++ b/plugins/TabSRMM/src/chat/log.cpp @@ -87,7 +87,7 @@ static int Log_AppendIEView(LOGSTREAMDATA* streamData, BOOL simpleMode, TCHAR ** {
va_list va;
int lineLen, textCharsCount=0;
- TCHAR* line = (TCHAR*)alloca( 8001 * sizeof(TCHAR));
+ TCHAR* line = (TCHAR*)_alloca( 8001 * sizeof(TCHAR));
TCHAR* d;
MODULEINFO *mi = MM_FindModule(streamData->si->pszModule);
@@ -519,7 +519,7 @@ static int Log_AppendRTF(LOGSTREAMDATA* streamData, BOOL simpleMode, char **buff va_list va;
int textCharsCount = 0;
char *d;
- TCHAR *line = (TCHAR*)alloca(8001 * sizeof(TCHAR));
+ TCHAR *line = (TCHAR*)_alloca(8001 * sizeof(TCHAR));
va_start(va, fmt);
int lineLen = mir_vsntprintf(line, 8000, fmt, va);
|