diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-03 21:47:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-03 21:47:03 +0000 |
commit | e412759d7e551e3fc4dc4be6e1fae1cd4f308868 (patch) | |
tree | 00ed12238ba8b3735ddf95cf9e79c48d7c411c78 /plugins/CryptoPP/cpp_gpgw.cpp | |
parent | 0f95cbb4a9f1c9a613dccb9d53f5ddb50a8cadd7 (diff) |
no more PLUGININFOEX::replacesDefaultModule, that old & nasty clutch
since now all Myranda plugins are binary incompatible with Miranda's
git-svn-id: http://svn.miranda-ng.org/main/trunk@743 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/cpp_gpgw.cpp')
-rw-r--r-- | plugins/CryptoPP/cpp_gpgw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CryptoPP/cpp_gpgw.cpp b/plugins/CryptoPP/cpp_gpgw.cpp index 5107b27ac7..0ef3d77626 100644 --- a/plugins/CryptoPP/cpp_gpgw.cpp +++ b/plugins/CryptoPP/cpp_gpgw.cpp @@ -240,7 +240,7 @@ LPSTR __cdecl gpg_encode(HANDLE context, LPCSTR szPlainMsg) LPSTR szUtfMsg;
if ( ptr->mode & MODE_GPG_ANSI ) {
LPWSTR wszMsg = utf8decode(szPlainMsg);
- int wlen = wcslen(wszMsg)+1;
+ size_t wlen = wcslen(wszMsg)+1;
szUtfMsg = (LPSTR) alloca(wlen);
WideCharToMultiByte(CP_ACP, 0, wszMsg, -1, szUtfMsg, wlen, 0, 0);
}
@@ -261,7 +261,7 @@ LPSTR __cdecl gpg_decode(HANDLE context, LPCSTR szEncMsg) if (szOldMsg) {
if ( !is_7bit_string(szOldMsg) && !is_utf8_string(szOldMsg) ) {
- int slen = strlen(szOldMsg)+1;
+ size_t slen = strlen(szOldMsg)+1;
LPWSTR wszMsg = (LPWSTR) alloca(slen*sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, szOldMsg, -1, wszMsg, slen*sizeof(WCHAR));
szNewMsg = _strdup(utf8encode(wszMsg));
|