diff src/gtkpounce.c @ 10167:cf45c2a6a7cf

[gaim-migrate @ 11254] Some stuff - fix a crash removing chats from the buddy list, escape aliases in buddy pounce popups and the state notifications from the state notify plugin, and fix a corner-case crash in smiley theme sorting. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 10 Nov 2004 17:08:32 +0000
parents ced29c7b396c
children b8b4769d9800
line wrap: on
line diff
--- a/src/gtkpounce.c	Tue Nov 09 05:48:26 2004 +0000
+++ b/src/gtkpounce.c	Wed Nov 10 17:08:32 2004 +0000
@@ -949,6 +949,9 @@
 	{
 		char tmp[1024];
 		const char *name_shown;
+		char *escaped;
+
+		escaped = g_markup_escape_text(alias, -1);
 
 		/*
 		 * Here we place the protocol name in the pounce dialog to lessen
@@ -972,7 +975,9 @@
 				   (events & GAIM_POUNCE_AWAY) ?
 				   _("%s has gone away. (%s)") :
 				   _("Unknown pounce event. Please report this!"),
-				   alias, gaim_account_get_protocol_name(account));
+				   escaped, gaim_account_get_protocol_name(account));
+
+		g_free(escaped);
 
 		/*
 		 * Ok here is where I change the second argument, title, from