From c09aa99a7e9915c503064d6eb5e9dd1bdd2a673f Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 20:07:58 +0000 Subject: replace _tcscpy to mir_tstrcpy git-svn-id: http://svn.miranda-ng.org/main/trunk@13764 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/parse_str.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 d7e797c830..949051cdda 100644 --- a/plugins/Variables/src/parse_str.cpp +++ b/plugins/Variables/src/parse_str.cpp @@ -170,8 +170,8 @@ static TCHAR *parseInsert(ARGUMENTSINFO *ai) memset(res, 0, ((mir_tstrlen(ai->targv[1]) + mir_tstrlen(ai->targv[2]) + 1) * sizeof(TCHAR))); _tcsncpy(res, ai->targv[1], pos); - _tcscpy(res + pos, ai->targv[2]); - _tcscpy(res + pos + mir_tstrlen(ai->targv[2]), ai->targv[1] + pos); + mir_tstrcpy(res + pos, ai->targv[2]); + mir_tstrcpy(res + pos + mir_tstrlen(ai->targv[2]), ai->targv[1] + pos); return res; } @@ -302,7 +302,7 @@ static TCHAR *parsePadright(ARGUMENTSINFO *ai) return NULL; memset(res, 0, ((addcount + mir_tstrlen(ai->targv[1]) + 1) * sizeof(TCHAR))); - _tcscpy(res, ai->targv[1]); + mir_tstrcpy(res, ai->targv[1]); TCHAR *cur = res + mir_tstrlen(ai->targv[1]); for (unsigned int i = 0; i < addcount; i++) *cur++ = padchar; @@ -459,7 +459,7 @@ static TCHAR *parseScroll(ARGUMENTSINFO *ai) return NULL; memset(res, 0, ((2 * mir_tstrlen(ai->targv[1]) + 1) * sizeof(TCHAR))); - _tcscpy(res, ai->targv[1]); + mir_tstrcpy(res, ai->targv[1]); _tcscat(res, ai->targv[1]); memmove(res, res + move, (mir_tstrlen(res + move) + 1)*sizeof(TCHAR)); *(res + display) = 0; -- cgit v1.2.3