diff src/util.c @ 13488:14fa5c324573

[gaim-migrate @ 15864] alphabetizing one, fixing an inane bug I somehow didn't notice in the other. committer: Tailor Script <tailor@pidgin.im>
author Christopher O'Brien <siege@pidgin.im>
date Sat, 11 Mar 2006 15:22:13 +0000
parents 974fffde9f60
children 231c58da452d
line wrap: on
line diff
--- a/src/util.c	Fri Mar 10 19:04:25 2006 +0000
+++ b/src/util.c	Sat Mar 11 15:22:13 2006 +0000
@@ -3752,9 +3752,11 @@
 
 		b += 2; /* skip past the &# */
 
-		/* strtoul will handle 0x prefix as hex, but not x */
-		if(*b == 'x' || *b == 'X')
+		/* strtoul will treat 0x prefix as hex, but not just x */
+		if(*b == 'x' || *b == 'X') {
 			base = 16;
+			b++;
+		}
 
 		/* advances buf to the end of the ncr segment */
 		wc = (gunichar) strtoul(b, &buf, base);