From: Stu T. <nos...@us...> - 2004-11-10 17:08:40
|
Update of /cvsroot/gaim/gaim/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/plugins Modified Files: statenotify.c Log Message: 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. Index: statenotify.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/statenotify.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -p -r1.22 -r1.23 --- statenotify.c 3 Sep 2004 21:21:20 -0000 1.22 +++ statenotify.c 10 Nov 2004 17:08:32 -0000 1.23 @@ -18,6 +18,7 @@ write_status(GaimBuddy *buddy, const cha GaimConversation *conv; const char *who; char buf[256]; + char *escaped; conv = gaim_find_conversation_with_account(buddy->name, buddy->account); @@ -25,8 +26,10 @@ write_status(GaimBuddy *buddy, const cha return; who = gaim_buddy_get_alias(buddy); + escaped = g_markup_escape_text(who, -1); - g_snprintf(buf, sizeof(buf), message, who); + g_snprintf(buf, sizeof(buf), message, escaped); + g_free(escaped); gaim_conversation_write(conv, NULL, buf, GAIM_MESSAGE_SYSTEM, time(NULL)); } |