summaryrefslogtreecommitdiff
path: root/SecureIM/splitmsg.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/splitmsg.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/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);