# HG changeset patch # User masca@cpw.pidgin.im # Date 1278365746 0 # Node ID 98cd0ea847ec6a24227dd8ce7eb978fdcea48923 # Parent e2f1c31843027eb6be920d085ab3a40cbaad9e4f Properly set the body_len of the SlpMessagePart, this set correctly the footer value. diff -r e2f1c3184302 -r 98cd0ea847ec libpurple/protocols/msn/slpmsg_part.c --- 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) {