changeset 30397:1f3ef11a9690

My esteemed mentor caught me red-handed. Thanks Mark!
author ivan.komarov@soc.pidgin.im
date Sat, 31 Jul 2010 20:08:52 +0000
parents 1b7152eeea31
children be056399ae5f
files libpurple/protocols/oscar/encoding.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }