diff -r b14e55964c97 -r a32031c0f781 src/protocols/irc/irc.c
--- a/src/protocols/irc/irc.c Mon May 05 20:57:12 2003 +0000
+++ b/src/protocols/irc/irc.c Mon May 05 20:58:37 2003 +0000
@@ -698,7 +698,7 @@
handle_topic(struct gaim_connection *gc, char *text)
{
struct gaim_conversation *c;
- char *po = strchr(text, ' ');
+ char *po = strchr(text, ' '), *buf;
if (!po)
return;
@@ -707,12 +707,12 @@
po += 2;
if ((c = irc_find_chat(gc, text))) {
- char buf[IRC_BUF_LEN];
+ po = irc_recv_convert(gc, po);
gaim_chat_set_topic(GAIM_CHAT(c), NULL, po);
- g_snprintf(buf, sizeof(buf), _("%s has changed the topic to: %s"),
- text, po);
-
+ buf = g_strdup_printf(_("%s has changed the topic to: %s"), text, po);
gaim_conversation_write(c, NULL, buf, -1, WFLAG_SYSTEM, time(NULL));
+ g_free(buf);
+ g_free(po);
}
}