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/Boltun/src/Engine/Mind.cpp | 4 ++-- plugins/Boltun/src/Engine/TalkEngine.cpp | 2 +- plugins/Boltun/src/boltun.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Boltun') diff --git a/plugins/Boltun/src/Engine/Mind.cpp b/plugins/Boltun/src/Engine/Mind.cpp index 91b2dc4a84..5158a459e6 100644 --- a/plugins/Boltun/src/Engine/Mind.cpp +++ b/plugins/Boltun/src/Engine/Mind.cpp @@ -134,7 +134,7 @@ void Mind::Load(tstring filename) format(st); count = st.length(); c = co = new TCHAR[count + 1]; - _tcscpy(c, st.c_str()); + mir_tstrcpy(c, st.c_str()); size_t pos = 0; while (pos < count && _istspace(*c)) { @@ -259,7 +259,7 @@ void Mind::Load(tstring filename) tstring sc(c); int count1 = (int)s1.length(); TCHAR *c = new TCHAR[count1 + 1]; - _tcscpy(c, s1.c_str()); + mir_tstrcpy(c, s1.c_str()); CharLower(c); s1 = c; delete c; diff --git a/plugins/Boltun/src/Engine/TalkEngine.cpp b/plugins/Boltun/src/Engine/TalkEngine.cpp index 8d4efbf476..1c4465402b 100644 --- a/plugins/Boltun/src/Engine/TalkEngine.cpp +++ b/plugins/Boltun/src/Engine/TalkEngine.cpp @@ -274,7 +274,7 @@ tstring TalkBot::AllReplies(const tstring &incomingMessage, ContactData *contact TalkBot::MessageInfo* TalkBot::Reply(MCONTACT contact, tstring incomingMessage, bool saveChoice) { TCHAR* str = new TCHAR[incomingMessage.length() + 1]; - _tcscpy(str, incomingMessage.c_str()); + mir_tstrcpy(str, incomingMessage.c_str()); CharLower(str); incomingMessage = str; delete[] str; diff --git a/plugins/Boltun/src/boltun.cpp b/plugins/Boltun/src/boltun.cpp index 7a3796ecc9..2f8abd7a01 100644 --- a/plugins/Boltun/src/boltun.cpp +++ b/plugins/Boltun/src/boltun.cpp @@ -380,7 +380,7 @@ static INT_PTR CALLBACK EngineDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LP const size_t fileNameSize = 5000; TCHAR *filename = new TCHAR[fileNameSize]; TCHAR *fullname = GetFullName(Config.MindFileName); - _tcscpy(filename, fullname); + mir_tstrcpy(filename, fullname); if (fullname != Config.MindFileName) delete[] fullname; -- cgit v1.2.3