From 190b98cf90600fc0e98543ee87d772560547acca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 Jun 2012 19:34:50 +0000 Subject: "Variables are inexhaustible like an atom" (c) V.Lenin git-svn-id: http://svn.miranda-ng.org/main/trunk@704 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/parse_logic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Variables/parse_logic.cpp') diff --git a/plugins/Variables/parse_logic.cpp b/plugins/Variables/parse_logic.cpp index a9abcaa227..b375faab14 100644 --- a/plugins/Variables/parse_logic.cpp +++ b/plugins/Variables/parse_logic.cpp @@ -257,11 +257,11 @@ static TCHAR *parseFor(ARGUMENTSINFO *ai) { parsed = formatString(&fi); if (parsed != NULL) { if (res == NULL) { - res = ( TCHAR* )mir_alloc( _tcslen(parsed)+1 * sizeof(TCHAR)); + res = (TCHAR*)mir_alloc( _tcslen(parsed)+1 * sizeof(TCHAR)); if (res == NULL) return NULL; } - else res = ( TCHAR* )mir_realloc(res, (_tcslen(res)+_tcslen(parsed)+1)*sizeof(TCHAR)); + else res = (TCHAR*)mir_realloc(res, (_tcslen(res)+_tcslen(parsed)+1)*sizeof(TCHAR)); _tcscat(res, parsed); } -- cgit v1.2.3