changeset 30843:98cd0ea847ec

Properly set the body_len of the SlpMessagePart, this set correctly the footer value.
author masca@cpw.pidgin.im
date Mon, 05 Jul 2010 21:35:46 +0000
parents e2f1c3184302
children 7b1b7a4e0bb4
files libpurple/protocols/msn/slpmsg_part.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slpmsg_part.c	Mon Jul 05 20:52:35 2010 +0000
+++ b/libpurple/protocols/msn/slpmsg_part.c	Mon Jul 05 21:35:46 2010 +0000
@@ -39,7 +39,7 @@
 	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) {