summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-04-05 18:47:13 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-04-05 18:47:13 +0300
commit472467fdf175d80958812fcc0023b93c8bd17e02 (patch)
tree589fd7e2fda38601dc863c467ed4b573ce7feb20 /utilities.cpp
parentb361d47f0b56df151300aaaa6bbd48b31e7763bd (diff)
malloc instead of alloc
Diffstat (limited to 'utilities.cpp')
-rw-r--r--utilities.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utilities.cpp b/utilities.cpp
index c3f7c94..4910b00 100644
--- a/utilities.cpp
+++ b/utilities.cpp
@@ -146,12 +146,12 @@ tstring variables_parse(tstring const &tstrFormat, HANDLE hContact){
// case-insensitive _tcsstr
//by nullbie as i remember...
-#define NEWTSTR_ALLOCA(A) (A==NULL)?NULL:_tcscpy((TCHAR*)alloca(sizeof(TCHAR)*(_tcslen(A)+1)),A)
+#define NEWTSTR_MALLOC(A) (A==NULL)?NULL:_tcscpy((TCHAR*)malloc(sizeof(TCHAR)*(_tcslen(A)+1)),A)
const int Stricmp(const TCHAR *str, const TCHAR *substr)
{
int i;
- TCHAR *str_up = NEWTSTR_ALLOCA(str);
- TCHAR *substr_up = NEWTSTR_ALLOCA(substr);
+ TCHAR *str_up = NEWTSTR_MALLOC(str);
+ TCHAR *substr_up = NEWTSTR_MALLOC(substr);
CharUpperBuff(str_up, lstrlen(str_up));
CharUpperBuff(substr_up, lstrlen(substr_up));