Mercurial > pidgin.yaz
diff src/protocols/jabber/jabber.c @ 3328:d183c2703508
[gaim-migrate @ 3346]
Remainder of fix for Gaim crashing on non-ASCII buddy alias (Jabber "name"
attribute) chars. (Thanks, A Ho-seok Lee)
committer: Tailor Script <tailor@pidgin.im>
author | Jim Seymour <jseymour> |
---|---|
date | Wed, 19 Jun 2002 21:20:08 +0000 |
parents | 52db87ab4083 |
children | e77fcff466a1 |
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c Tue Jun 18 22:59:22 2002 +0000 +++ b/src/protocols/jabber/jabber.c Wed Jun 19 21:20:08 2002 +0000 @@ -1710,6 +1710,9 @@ /* * Add or remove a buddy? Change buddy's alias or group? */ + if(name) + name = utf8_to_str(name); + if (BUD_SUB_TO_PEND(sub, ask) || BUD_SUBD_TO(sub, ask)) { if ((b = find_buddy(GJ_GC(gjc), buddyname)) == NULL) { debug_printf("adding buddy [4]: %s\n", buddyname); @@ -1748,6 +1751,10 @@ } else if (BUD_USUB_TO_PEND(sub, ask) || BUD_USUBD_TO(sub, ask) || !strcasecmp(sub, "remove")) { jabber_remove_gaim_buddy(GJ_GC(gjc), buddyname); } + + if(name) + g_free(name); + g_free(buddyname); }