changeset 7328:3bcd867c22f3

[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 <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 25 Oct 2003 06:56:46 +0000
parents 258c19be6d84
children e3b88394d1b0
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {