summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/parse_str.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-23 16:43:34 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-23 16:43:34 +0000
commit11c185ebb3013230538d4a48656b23bf81d31055 (patch)
tree41f64fdbd3785621cfeb89a2c0d07ea1b2c4427f /plugins/Variables/src/parse_str.cpp
parentf2de79cb2eb8247548650ee80d75be109ac66ee7 (diff)
replace _tcscat to mir_tstrcat
git-svn-id: http://svn.miranda-ng.org/main/trunk@13778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/src/parse_str.cpp')
-rw-r--r--plugins/Variables/src/parse_str.cpp12
1 files changed, 6 insertions, 6 deletions
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);
}