changeset 30452:6eeae3220b3d

I'm not sure how this worked, since g_strdup should stop at \0.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 19 Apr 2010 08:37:10 +0000
parents 6d1894d0170e
children a613180bfeab
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	Mon Apr 19 08:36:23 2010 +0000
+++ b/libpurple/protocols/msn/directconn.c	Mon Apr 19 08:37:10 2010 +0000
@@ -616,7 +616,7 @@
 	p = msn_dc_new_packet();
 
 	p->length = 8;
-	p->data = (guchar*)g_strdup("\4\0\0\0foo");
+	p->data = g_memdup("\4\0\0\0foo", 8);
 	p->sent_cb = NULL;
 
 	msn_dc_enqueue_packet(dc, p);