libpurple/protocols/oscar/encoding.c

branch
soc.2010.icq-tlc
changeset 30675
0898ace5d43c
parent 30669
e669bab0688e
child 30679
8e1fb05214d2
--- a/libpurple/protocols/oscar/encoding.c	Sat Jul 31 20:02:10 2010 +0000
+++ b/libpurple/protocols/oscar/encoding.c	Sat Jul 31 20:08:52 2010 +0000
@@ -204,12 +204,13 @@
 static guint16
 get_simplest_charset(const char *utf8)
 {
-	while (*utf8++)
+	while (*utf8)
 	{
 		if ((unsigned char)(*utf8) > 0x7f) {
 			/* not ASCII! */
 			return AIM_CHARSET_UNICODE;
 		}
+		utf8++;
 	}
 	return AIM_CHARSET_ASCII;
 }

mercurial