# HG changeset patch # User Ma Yuan # Date 1156352491 0 # Node ID ea23c4c010cf84798dfede1ef0bfb3ee0e632aae # Parent bf8fb36097ee62804087b50532cde618c0537d80 [gaim-migrate @ 17006] fix msg send bug tested ok on windows committed by MaYuan committer: Ethan Blanton diff -r bf8fb36097ee -r ea23c4c010cf src/protocols/msn/msg.c --- a/src/protocols/msn/msg.c Wed Aug 23 16:25:54 2006 +0000 +++ b/src/protocols/msn/msg.c Wed Aug 23 17:01:31 2006 +0000 @@ -468,16 +468,14 @@ } else { - if (body != NULL) - { + if (body != NULL){ memcpy(n, body, body_len); n += body_len; -// n = '\0'; + *n = '\0'; } } - if (ret_size != NULL) - { + if (ret_size != NULL){ *ret_size = n - base; if (*ret_size > 1664) diff -r bf8fb36097ee -r ea23c4c010cf src/protocols/msn/notification.c --- a/src/protocols/msn/notification.c Wed Aug 23 16:25:54 2006 +0000 +++ b/src/protocols/msn/notification.c Wed Aug 23 17:01:31 2006 +0000 @@ -419,7 +419,7 @@ gaim_debug_info("MaYuan","send UUM,payload{%s},strlen:%d,len:%d\n", payload,strlen(payload),payload_len); type = msg->type; - trans = msn_transaction_new(cmdproc, "UUM","%s 32 %d %d",msg->remote_user,type,strlen(payload)); + trans = msn_transaction_new(cmdproc, "UUM","%s 32 %d %d",msg->remote_user,type,payload_len); msn_transaction_set_payload(trans, payload, strlen(payload)); msn_cmdproc_send_trans(cmdproc, trans); }