diff libpurple/protocols/jabber/jutil.c @ 27536:8f2dfa6ef2f7

Of course, these should be >= and <=
author Mark Doliner <mark@kingant.net>
date Fri, 10 Jul 2009 23:05:20 +0000
parents 04d8452dee48
children 7e79102cda40
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jutil.c	Fri Jul 10 22:42:18 2009 +0000
+++ b/libpurple/protocols/jabber/jutil.c	Fri Jul 10 23:05:20 2009 +0000
@@ -154,9 +154,9 @@
 
 			default:
 				/* characters allowed everywhere */
-				if ((*c > 'a' && *c < 'z')
-						|| (*c > '0' && *c < '9')
-						|| (*c > 'A' && *c < 'Z')
+				if ((*c >= 'a' && *c <= 'z')
+						|| (*c >= '0' && *c <= '9')
+						|| (*c >= 'A' && *c <= 'Z')
 						|| *c == '.' || *c == '-')
 					/* We're good */
 					break;