# HG changeset patch # User Mark Doliner # Date 1067065006 0 # Node ID 3bcd867c22f32d5c9406b76b3b3f6da1cea17b27 # Parent 258c19be6d84ad569c50cb1aa24a2be4ac9939e8 [gaim-migrate @ 7914] This fixes the ICQ login crash. It was crashing because some group names or screen names (basically the "name" part of some ssi items) has a trailing non-utf8 character. I have absolutely no idea why. Any insight is welcome... committer: Tailor Script diff -r 258c19be6d84 -r 3bcd867c22f3 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Sat Oct 25 01:57:41 2003 +0000 +++ b/src/protocols/oscar/oscar.c Sat Oct 25 06:56:46 2003 +0000 @@ -4801,6 +4801,7 @@ /* Add from server list to local list */ for (curitem=sess->ssi.local; curitem; curitem=curitem->next) { + if ((curitem->name == NULL) || (g_utf8_validate(curitem->name, -1, NULL))) switch (curitem->type) { case 0x0000: { /* Buddy */ if (curitem->name) {