From 332a1c985d268f1e41bfac146fc80c9ccbb93c85 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 2 Jul 2012 15:52:34 +0000 Subject: warning fix git-svn-id: http://svn.miranda-ng.org/main/trunk@718 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CryptoPP/cpp_pgpw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CryptoPP/cpp_pgpw.cpp') 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; } -- cgit v1.2.3