summaryrefslogtreecommitdiff
path: root/SecureIM/crypt_dll.cpp
diff options
context:
space:
mode:
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;