From 11c185ebb3013230538d4a48656b23bf81d31055 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 23 May 2015 16:43:34 +0000 Subject: replace _tcscat to mir_tstrcat git-svn-id: http://svn.miranda-ng.org/main/trunk@13778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/parse_str.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Variables/src/parse_str.cpp') diff --git a/plugins/Variables/src/parse_str.cpp b/plugins/Variables/src/parse_str.cpp index 949051cdda..a8903e89f0 100644 --- a/plugins/Variables/src/parse_str.cpp +++ b/plugins/Variables/src/parse_str.cpp @@ -119,7 +119,7 @@ static TCHAR *parseFixeol(ARGUMENTSINFO *ai) memset(res, 0, (((cur - ai->targv[1]) + 1) * sizeof(TCHAR))); _tcsncpy(res, ai->targv[1], cur - ai->targv[1]); - _tcscat(res, szReplacement); + mir_tstrcat(res, szReplacement); return res; } @@ -279,7 +279,7 @@ static TCHAR *parsePad(ARGUMENTSINFO *ai) for (unsigned int i = 0; i < addcount; i++) *cur++ = padchar; - _tcscat(res, ai->targv[1]); + mir_tstrcat(res, ai->targv[1]); return res; } @@ -383,7 +383,7 @@ static TCHAR *parseRepeat(ARGUMENTSINFO *ai) memset(res, 0, ((count * mir_tstrlen(ai->targv[1]) + 1) * sizeof(TCHAR))); for (int i = 0; i < count; i++) - _tcscat(res, ai->targv[1]); + mir_tstrcat(res, ai->targv[1]); return res; } @@ -460,7 +460,7 @@ static TCHAR *parseScroll(ARGUMENTSINFO *ai) memset(res, 0, ((2 * mir_tstrlen(ai->targv[1]) + 1) * sizeof(TCHAR))); mir_tstrcpy(res, ai->targv[1]); - _tcscat(res, ai->targv[1]); + mir_tstrcat(res, ai->targv[1]); memmove(res, res + move, (mir_tstrlen(res + move) + 1)*sizeof(TCHAR)); *(res + display) = 0; res = (TCHAR*)mir_realloc(res, (mir_tstrlen(res) + 1)*sizeof(TCHAR)); @@ -754,8 +754,8 @@ static TCHAR *parseWord(ARGUMENTSINFO *ai) TCHAR *pres = (TCHAR*)mir_realloc(res, (mir_tstrlen(res) + mir_tstrlen(szWord) + 2)*sizeof(TCHAR)); if (pres != NULL) { res = pres; - _tcscat(res, _T(" ")); - _tcscat(res, szWord); + mir_tstrcat(res, _T(" ")); + mir_tstrcat(res, szWord); } mir_free(szWord); } -- cgit v1.2.3