pidgin: f0da04ac: I'm not sure how this worked, since g_st...
qulogic at pidgin.im
qulogic at pidgin.im
Fri May 21 18:07:27 EDT 2010
-----------------------------------------------------------------
Revision: f0da04ac1b54d8fba72bb07a588480d8365d5f42
Ancestor: 60b26bfa5905410100700f91a8eca169866c1eee
Author: qulogic at pidgin.im
Date: 2010-04-19T08:37:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f0da04ac1b54d8fba72bb07a588480d8365d5f42
Modified files:
libpurple/protocols/msn/directconn.c
ChangeLog:
I'm not sure how this worked, since g_strdup should stop at \0.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/directconn.c 4c2ea669d123d01187aa36ac5ee7e478d398de3f
+++ libpurple/protocols/msn/directconn.c 56bc0f1be16f1ce513552c2db83a12a658d78edd
@@ -616,7 +616,7 @@ msn_dc_send_foo(MsnDirectConn *dc)
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);
More information about the Commits
mailing list