jabber: Oops. Make jabber_saslprep have a hope of not locking the program if built without IDN support.

Sun, 07 Mar 2010 18:47:09 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Sun, 07 Mar 2010 18:47:09 +0000
changeset 29830
ad339cd679d1
parent 29829
1e4167157edc
child 29831
f0941cfe9b3a

jabber: Oops. Make jabber_saslprep have a hope of not locking the program if built without IDN support.

libpurple/protocols/jabber/jutil.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/jutil.c	Sun Mar 07 03:04:08 2010 +0000
+++ b/libpurple/protocols/jabber/jutil.c	Sun Mar 07 18:47:09 2010 +0000
@@ -302,7 +302,7 @@
 	const guchar *c;
 
 	c = (const guchar *)in;
-	while (*c) {
+	for ( ; *c; ++c) {
 		if (*c > 0x7f ||
 				(*c < 0x20 && *c != '\t' && *c != '\n' && *c != '\r'))
 			return NULL;

mercurial