changeset 14459:4e004a2994c2

[gaim-migrate @ 17173] Fix Bug #153721 - Crash caused by non-UTF8 text passed to g_markup_escape_text(). I suspect there may be elsewhere in the gg prpl that suffers from the same problem, but I don't want to be willy-nilly running utf8 validation everyere. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 06 Sep 2006 02:08:15 +0000
parents cdc4ef325a23
children 040dfd49107d
files libgaim/protocols/gg/gg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/gg/gg.c	Wed Sep 06 00:46:00 2006 +0000
+++ b/libgaim/protocols/gg/gg.c	Wed Sep 06 02:08:15 2006 +0000
@@ -1547,7 +1547,7 @@
 
 		return text;
 	} else {
-		tmp = g_strdup(gaim_status_get_name(status));
+		tmp = gaim_utf8_salvage(gaim_status_get_name(status));
 		text = g_markup_escape_text(tmp, -1);
 		g_free(tmp);