Mercurial > pidgin
changeset 4794:642444078976
[gaim-migrate @ 5114]
let groups have funky characters in them w/o crashing
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 16 Mar 2003 00:34:10 +0000 |
parents | 677d3cb193a1 |
children | 433ff974bee6 |
files | src/buddy.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 */