diff options
Diffstat (limited to 'SecureIM/crypt_lists.cpp')
-rw-r--r-- | SecureIM/crypt_lists.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SecureIM/crypt_lists.cpp b/SecureIM/crypt_lists.cpp index 3387eb7..48fbad1 100644 --- a/SecureIM/crypt_lists.cpp +++ b/SecureIM/crypt_lists.cpp @@ -261,8 +261,8 @@ void addMsg2Queue(pUinKey ptr,WPARAM wParam,LPSTR szMsg) { ptrMessage->nextMessage = NULL;
if(wParam & PREF_UNICODE) {
- int slen = strlen(szMsg)+1;
- int wlen = wcslen((wchar_t *)(szMsg+slen))+1;
+ int slen = (int)strlen(szMsg)+1;
+ int wlen = (int)wcslen((wchar_t *)(szMsg+slen))+1;
ptrMessage->Message = (LPSTR) mir_alloc(slen+wlen*sizeof(WCHAR));
memcpy(ptrMessage->Message,szMsg,slen+wlen*sizeof(WCHAR));
}
|