summaryrefslogtreecommitdiff
path: root/SecureIM/splitmsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SecureIM/splitmsg.cpp')
-rw-r--r--SecureIM/splitmsg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/SecureIM/splitmsg.cpp b/SecureIM/splitmsg.cpp
index 6389e92..45c2da1 100644
--- a/SecureIM/splitmsg.cpp
+++ b/SecureIM/splitmsg.cpp
@@ -7,7 +7,7 @@ LPSTR splitMsg(LPSTR szMsg, int iLen) {
#if defined(_DEBUG) || defined(NETLIB_LOG)
Sent_NetLog("split: msg: -----\n%s\n-----\n",szMsg);
#endif
- int len = strlen(szMsg);
+ int len = (int)strlen(szMsg);
LPSTR out = (LPSTR) mir_alloc(len*2);
LPSTR buf = out;
@@ -69,7 +69,7 @@ LPSTR combineMessage(pUinKey ptr, LPSTR szMsg) {
int len=0,i;
for( i=0; i<part_all; i++ ){
if(pm->message[i]==NULL) break;
- len+=strlen(pm->message[i]);
+ len+=(int)strlen(pm->message[i]);
}
if( i==part_all ) { // combine message
SAFE_FREE(ptr->tmp);
@@ -100,13 +100,13 @@ LPSTR combineMessage(pUinKey ptr, LPSTR szMsg) {
int splitMessageSend(pUinKey ptr, LPSTR szMsg) {
int ret;
- int len = strlen(szMsg);
+ int len = (int)strlen(szMsg);
int par = (getContactStatus(ptr->hContact)==ID_STATUS_OFFLINE)?ptr->proto->split_off:ptr->proto->split_on;
if( par && len>par ) {
LPSTR msg = splitMsg(szMsg,par);
LPSTR buf = msg;
while( *buf ) {
- len = strlen(buf);
+ len = (int)strlen(buf);
LPSTR tmp = mir_strdup(buf);
ret = CallContactService(ptr->hContact,PSS_MESSAGE,(WPARAM)PREF_METANODB,(LPARAM)tmp);
mir_free(tmp);