changeset 27378:c0b4ab2f4b9f

merge of '8222e69d26359ab1a478cc42d25834120aee713b' and 'ee2ad24a7d051b291259bd2fc8ce8e57f24c0cbb'
author Paul Aurich <paul@darkrain42.org>
date Sat, 04 Jul 2009 17:19:00 +0000
parents d4c6d2c6fb03 (diff) 18d5a70f6334 (current diff)
children a22ef93d6aec 120943c3f5a8 5744f6e81be6
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Sat Jul 04 10:33:37 2009 +0000
+++ b/libpurple/util.c	Sat Jul 04 17:19:00 2009 +0000
@@ -979,8 +979,8 @@
 		buf[buflen] = '\0';
 		pln = buf;
 
-		len = 2;
-		while(isdigit((gint) text[len])) len++;
+		len = (*(text+2) == 'x' ? 3 : 2);
+		while(isxdigit((gint) text[len])) len++;
 		if(text[len] == ';') len++;
 	}
 	else