From: Gary K. <amc...@us...> - 2005-01-26 16:48:38
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16823/src Modified Files: proto.c Log Message: Some sanity fixes (is that literally possible?) anyways.. lets use glib a little bit more since it save us some work :) Index: proto.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/proto.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** proto.c 26 Jan 2005 16:44:41 -0000 1.17 --- proto.c 26 Jan 2005 16:48:29 -0000 1.18 *************** *** 72,76 **** static void bnet_list_destroy_all(gpointer data, gpointer user_data) { ! free(data); } --- 72,76 ---- static void bnet_list_destroy_all(gpointer data, gpointer user_data) { ! g_free(data); } *************** *** 131,135 **** } ! q = (gchar*)malloc(p-w+1); memcpy(q, w, p-w); q[p-w] = 0; --- 131,135 ---- } ! q = g_new0(gchar, p - w + 1); memcpy(q, w, p-w); q[p-w] = 0; |