changeset 30045:63684aa5d6ab

The length of a DC packet does not include itself.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 05 May 2010 07:02:05 +0000
parents 87854e2529a0
children e471c1fb9c49
files libpurple/protocols/msn/directconn.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/directconn.c	Sun Apr 25 23:38:27 2010 +0000
+++ b/libpurple/protocols/msn/directconn.c	Wed May 05 07:02:05 2010 +0000
@@ -95,7 +95,7 @@
 	MsnDirectConnPacket	*p;
 
 	p = g_new0(MsnDirectConnPacket, 1);
-	p->length = length + 4;
+	p->length = length;
 	p->data = g_malloc(length);
 
 	return p;