[gaim-migrate @ 5114]

Sun, 16 Mar 2003 00:34:10 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Sun, 16 Mar 2003 00:34:10 +0000
changeset 4794
00dfc8270c0c
parent 4793
1da93f6c80f3
child 4795
9950ed0df04d

[gaim-migrate @ 5114]
let groups have funky characters in them w/o crashing

src/buddy.c file | annotate | diff | comparison | revisions
--- a/src/buddy.c	Sun Mar 16 00:01:49 2003 +0000
+++ b/src/buddy.c	Sun Mar 16 00:34:10 2003 +0000
@@ -1132,7 +1132,9 @@
 					/* This buddy's group has not yet been added.  We do that here */
 					GdkPixbuf *groupicon = gtk_widget_render_icon(gtkblist->treeview,
 							GTK_STOCK_OPEN, GTK_ICON_SIZE_SMALL_TOOLBAR, NULL);
-					char *mark = g_strdup_printf("<span weight='bold'>%s</span>",  ((struct group*)node->parent)->name);
+					char *esc = g_markup_escape_text(((struct group*)node->parent)->name, -1);
+					char *mark = g_strdup_printf("<span weight='bold'>%s</span>", esc);
+					g_free(esc);
 					oldersibling = node->parent->prev;
 
 					/* We traverse backwards through the buddy list to find the node in the tree to insert it after */

mercurial