summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/messages.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 19:52:29 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 19:52:29 +0000
commitbabf7873a3fe373d60ef22b1b671d98e014d8819 (patch)
treee21dfdb68839616efbbd884dfa77a1745f1c35d7 /plugins/New_GPG/src/messages.cpp
parenta89887eb202c99ce09107668561abce6704f9004 (diff)
replace strcpy to mir_strcpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@13763 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src/messages.cpp')
-rwxr-xr-xplugins/New_GPG/src/messages.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/New_GPG/src/messages.cpp b/plugins/New_GPG/src/messages.cpp
index ea2b7370f3..d13bd66a3b 100755
--- a/plugins/New_GPG/src/messages.cpp
+++ b/plugins/New_GPG/src/messages.cpp
@@ -263,7 +263,7 @@ void RecvMsgSvc_func(MCONTACT hContact, std::wstring str, char *msg, DWORD flags
if(bDebugLog)
debuglog<<std::string(time_str()+": info: Failed to decrypt GPG encrypted message.");
char *tmp = (char*)mir_alloc(sizeof(char)*(str.length()+1));
- strcpy(tmp, str.c_str());
+ mir_strcpy(tmp, str.c_str());
HistoryLog(hContact, db_event(msg, timestamp, 0, dbflags));
BYTE enc = db_get_b(hContact, szGPGModuleName, "GPGEncryption", 0);
db_set_b(hContact, szGPGModuleName, "GPGEncryption", 0);
@@ -437,7 +437,7 @@ INT_PTR RecvMsgSvc(WPARAM w, LPARAM l)
else if(s2 > output.find("<", s))
s2 = output.find("<", s);
tmp = (char*)mir_alloc(output.substr(s,s2-s-1).length()+1);
- strcpy(tmp, output.substr(s,s2-s-1).c_str());
+ mir_strcpy(tmp, output.substr(s,s2-s-1).c_str());
mir_utf8decode(tmp, 0);
db_set_s(ccs->hContact, szGPGModuleName, "KeyMainName", tmp);
mir_free(tmp);
@@ -449,14 +449,14 @@ INT_PTR RecvMsgSvc(WPARAM w, LPARAM l)
if(output[s] == ')')
{
tmp = (char*)mir_alloc(output.substr(s2,s-s2).length()+1);
- strcpy(tmp, output.substr(s2,s-s2).c_str());
+ mir_strcpy(tmp, output.substr(s2,s-s2).c_str());
mir_utf8decode(tmp, 0);
db_set_s(ccs->hContact, szGPGModuleName, "KeyComment", tmp);
mir_free(tmp);
s+=3;
s2 = output.find(">", s);
tmp = (char*)mir_alloc(output.substr(s,s2-s).length()+1);
- strcpy(tmp, output.substr(s,s2-s).c_str());
+ mir_strcpy(tmp, output.substr(s,s2-s).c_str());
mir_utf8decode(tmp, 0);
db_set_s(ccs->hContact, szGPGModuleName, "KeyMainEmail", tmp);
mir_free(tmp);
@@ -464,7 +464,7 @@ INT_PTR RecvMsgSvc(WPARAM w, LPARAM l)
else
{
tmp = (char*)mir_alloc(output.substr(s2,s-s2).length()+1);
- strcpy(tmp, output.substr(s2,s-s2).c_str());
+ mir_strcpy(tmp, output.substr(s2,s-s2).c_str());
mir_utf8decode(tmp, 0);
db_set_s(ccs->hContact, szGPGModuleName, "KeyMainEmail", output.substr(s2,s-s2).c_str());
mir_free(tmp);