# HG changeset patch # User Mark Doliner # Date 1058418077 0 # Node ID 1748679a5ee15faa82878605fa3991f918264e49 # Parent 44ced441eb0263b84bb51498b776d9f2fae6b12a [gaim-migrate @ 6658] Fix the available message crash committer: Tailor Script diff -r 44ced441eb02 -r 1748679a5ee1 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Thu Jul 17 04:54:21 2003 +0000 +++ b/src/protocols/oscar/oscar.c Thu Jul 17 05:01:17 2003 +0000 @@ -5411,9 +5411,11 @@ } if (bi->availablemsg && !(b->uc & UC_UNAVAILABLE)) { + gchar *escaped = g_markup_escape_text(bi->availablemsg, strlen(bi->availablemsg)); tmp = yay; - yay = g_strconcat(tmp, _("Available: "), bi->availablemsg, "\n", NULL); + yay = g_strconcat(tmp, _("Available: "), escaped, "\n", NULL); free(tmp); + g_free(escaped); } } } else { @@ -5448,7 +5450,7 @@ } else if (GAIM_BUDDY_IS_ONLINE(b)) { struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(b->name)); if (bi->availablemsg) - ret = g_strdup(bi->availablemsg); + ret = g_markup_escape_text(bi->availablemsg, strlen(bi->availablemsg)); } else { char *gname = aim_ssi_itemlist_findparentname(od->sess->ssi.local, b->name); if (aim_ssi_waitingforauth(od->sess->ssi.local, gname, b->name))