From f251f8ffa34a0b9699aff9ca3ed03fec8f2d2e51 Mon Sep 17 00:00:00 2001 From: watcherhd Date: Sun, 1 Jan 2012 20:39:34 +0000 Subject: SecureIM: x64 fixes git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@253 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- SecureIM/splitmsg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'SecureIM/splitmsg.cpp') 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; imessage[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); -- cgit v1.2.3