summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-02 15:52:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-02 15:52:34 +0000
commit332a1c985d268f1e41bfac146fc80c9ccbb93c85 (patch)
tree7e609786b8308dd7bfbc0a3f0fdbfbaa395d8984
parenteca1b167120907f6d927de29f449c93bdf381a83 (diff)
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@718 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/CryptoPP/cpp_pgpw.cpp6
-rw-r--r--plugins/CryptoPP/cpp_rsam.cpp4
-rw-r--r--plugins/CryptoPP/cpp_svcs.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/CryptoPP/cpp_pgpw.cpp b/plugins/CryptoPP/cpp_pgpw.cpp
index fa20560f94..e177cfbc6b 100644
--- a/plugins/CryptoPP/cpp_pgpw.cpp
+++ b/plugins/CryptoPP/cpp_pgpw.cpp
@@ -210,7 +210,7 @@ LPSTR __cdecl pgp_encrypt(pCNTX ptr, LPCSTR szPlainMsg)
szEncMsg = p_pgp_encrypt_keydb(szPlainMsg,p->pgpKeyID);
if (!szEncMsg) return 0;
- ptr->tmp = (LPSTR) strdup(szEncMsg);
+ ptr->tmp = (LPSTR) _strdup(szEncMsg);
LocalFree((LPVOID)szEncMsg);
return ptr->tmp;
@@ -233,7 +233,7 @@ LPSTR __cdecl pgp_decrypt(pCNTX ptr, LPCSTR szEncMsg)
if (!szPlainMsg) return NULL;
}
- ptr->tmp = (LPSTR) strdup(szPlainMsg);
+ ptr->tmp = (LPSTR) _strdup(szPlainMsg);
LocalFree((LPVOID)szPlainMsg);
return ptr->tmp;
@@ -291,7 +291,7 @@ int __cdecl pgp_set_key(HANDLE context, LPCSTR RemoteKey)
// if (!p_pgp_check_key(RemoteKey)) return 0;
SAFE_FREE(p->pgpKey);
- p->pgpKey = (PBYTE) strdup(RemoteKey);
+ p->pgpKey = (PBYTE) _strdup(RemoteKey);
return 1;
}
diff --git a/plugins/CryptoPP/cpp_rsam.cpp b/plugins/CryptoPP/cpp_rsam.cpp
index 5cfdd824ed..3cdb391660 100644
--- a/plugins/CryptoPP/cpp_rsam.cpp
+++ b/plugins/CryptoPP/cpp_rsam.cpp
@@ -407,7 +407,7 @@ LPSTR __cdecl rsa_recv(HANDLE context, LPCSTR msg) {
SAFE_FREE(ptr->tmp);
string msg = decode_msg(p,data);
if ( msg.length() ) {
- ptr->tmp = (LPSTR) strdup(msg.c_str());
+ ptr->tmp = (LPSTR) _strdup(msg.c_str());
}
else {
imp->rsa_notify(context,-5); // ошибка декодирования AES сообщения
@@ -420,7 +420,7 @@ LPSTR __cdecl rsa_recv(HANDLE context, LPCSTR msg) {
SAFE_FREE(ptr->tmp);
string msg = decode_rsa(p,r,data);
if ( msg.length() ) {
- ptr->tmp = (LPSTR) strdup(msg.c_str());
+ ptr->tmp = (LPSTR) _strdup(msg.c_str());
}
else {
imp->rsa_notify(context,-6); // ошибка декодирования RSA сообщения
diff --git a/plugins/CryptoPP/cpp_svcs.cpp b/plugins/CryptoPP/cpp_svcs.cpp
index 7e97735540..2b99003a2a 100644
--- a/plugins/CryptoPP/cpp_svcs.cpp
+++ b/plugins/CryptoPP/cpp_svcs.cpp
@@ -128,7 +128,7 @@ LPSTR __cdecl cpp_decrypt(pCNTX ptr, LPCSTR szEncMsg)
ptr->tmp = (LPSTR) cpp_gunzip((PBYTE)unciphered.data(),unciphered.length(),clen);
ptr->tmp[clen] = 0;
}
- else ptr->tmp = (LPSTR) strdup(unciphered.c_str());
+ else ptr->tmp = (LPSTR) _strdup(unciphered.c_str());
ptr->error = ERROR_NONE;
return ptr->tmp;