pidgin: fa71a7a6: Of course, these should be >= and <=

markdoliner at pidgin.im markdoliner at pidgin.im
Fri Jul 10 19:10:22 EDT 2009


-----------------------------------------------------------------
Revision: fa71a7a687030aa37b9e028c1f3fbbfcd7a85bc9
Ancestor: 40a6c92063d882cc02e5e662f7ceef9fcce16fd4
Author: markdoliner at pidgin.im
Date: 2009-07-10T23:05:20
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/fa71a7a687030aa37b9e028c1f3fbbfcd7a85bc9

Modified files:
        libpurple/protocols/jabber/jutil.c

ChangeLog: 

Of course, these should be >= and <=

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jutil.c	d3951d9c48dff5b5c819caba96f63b90f719809a
+++ libpurple/protocols/jabber/jutil.c	228d3e3db1fcf2914988453415ba72c2cf5c6a6a
@@ -154,9 +154,9 @@ jabber_id_new(const char *str)
 
 			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;


More information about the Commits mailing list