summaryrefslogtreecommitdiff
path: root/SecureIM/crypt_dll.cpp
diff options
context:
space:
mode:
authorwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2012-01-01 20:39:34 +0000
committerwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2012-01-01 20:39:34 +0000
commitf251f8ffa34a0b9699aff9ca3ed03fec8f2d2e51 (patch)
tree976da398337868638ccafce9fbff71239a8449eb /SecureIM/crypt_dll.cpp
parentf39683393b0f9c31559ef05c824774541d9a19be (diff)
SecureIM: x64 fixes
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@253 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'SecureIM/crypt_dll.cpp')
-rw-r--r--SecureIM/crypt_dll.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/SecureIM/crypt_dll.cpp b/SecureIM/crypt_dll.cpp
index 713374e..7418f3c 100644
--- a/SecureIM/crypt_dll.cpp
+++ b/SecureIM/crypt_dll.cpp
@@ -30,8 +30,8 @@ LPSTR InitKeyA(pUinKey ptr,int features) {
else
keysig = (LPSTR)SIG_KEY3;
- int slen = strlen(keysig);
- int tlen = strlen(pub_text);
+ int slen = (int)strlen(keysig);
+ int tlen = (int)strlen(pub_text);
LPSTR keyToSend = (LPSTR) mir_alloc(slen+tlen+1);
@@ -119,8 +119,8 @@ LPSTR encrypt(pUinKey ptr, LPCSTR szEncMsg) {
LPSTR szSig = (LPSTR) (ptr->offlineKey?SIG_ENOF:SIG_ENON);
- int slen = strlen(szSig);
- int clen = strlen(szEncMsg);
+ int slen = (int)strlen(szSig);
+ int clen = (int)strlen(szEncMsg);
LPSTR szMsg = (LPSTR) mir_alloc(clen+slen+1);
memcpy(szMsg, szSig, slen);
@@ -182,12 +182,12 @@ LPSTR decodeMsg(pUinKey ptr, LPARAM lParam, LPSTR szEncMsg) {
else {
ptr->decoded=true;
if( ppre->flags & PREF_UTF ) { // если протокол поддерживает utf8 - тогда отправляем в utf8
- int olen = strlen(szOldMsg)+1;
+ int olen = (int)strlen(szOldMsg)+1;
szNewMsg = (LPSTR) mir_alloc(olen);
memcpy(szNewMsg,szOldMsg,olen);
}
else {
- int olen = (strlen(szOldMsg)+1)*(sizeof(WCHAR)+1);
+ int olen = ((int)strlen(szOldMsg)+1)*(sizeof(WCHAR)+1);
szNewMsg = (LPSTR) mir_alloc(olen);
memcpy(szNewMsg,szOldMsg,olen);
ppre->flags |= PREF_UNICODE;