soc.2010.msn-tlc: 1576188c: Properly set the body_len of the SlpMess...

masca at cpw.pidgin.im masca at cpw.pidgin.im
Mon Jul 5 23:01:23 EDT 2010


----------------------------------------------------------------------
Revision: 1576188c57f7d718bb6c7602aff243b69713b17d
Parent:   73f72f8878030f66fe042e4403895867a83662f9
Author:   masca at cpw.pidgin.im
Date:     07/05/10 17:35:46
Branch:   im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/1576188c57f7d718bb6c7602aff243b69713b17d

Changelog: 

Properly set the body_len of the SlpMessagePart, this set correctly the footer value.

Changes against parent 73f72f8878030f66fe042e4403895867a83662f9

  patched  libpurple/protocols/msn/slpmsg_part.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slpmsg_part.c	9aeaa13b19201456ffa7d3a2c65be828d229a8d3
+++ libpurple/protocols/msn/slpmsg_part.c	4c14c86850074788c9886bb250f667c9e8f976e9
@@ -39,7 +39,7 @@ MsnSlpMessagePart *msn_slpmsgpart_new_fr
 	tmp += P2P_PACKET_HEADER_SIZE;
 
 	/* Extract the body */
-	body_len = data_len - (tmp - data);
+	body_len = data_len - P2P_PACKET_HEADER_SIZE - P2P_PACKET_FOOTER_SIZE;
 	/* msg->body_len = msg->msnslp_header.length; */
 
 	if (body_len > 0) {


More information about the Commits mailing list