pidgin: 25d4fad7: jabber: Oops. Make jabber_saslprep have...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Mar 7 13:50:44 EST 2010


-----------------------------------------------------------------
Revision: 25d4fad7d77b9c892b18504c1bdc49e0ecf41a0f
Ancestor: 4b5fe0d3a67d39d05f0c71ab139affd3c1c7bc2d
Author: darkrain42 at pidgin.im
Date: 2010-03-07T18:47:09
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/25d4fad7d77b9c892b18504c1bdc49e0ecf41a0f

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

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jutil.c	ac8e9a2ea499913f2e49ecbde2198dec90f0a63e
+++ libpurple/protocols/jabber/jutil.c	49c061c4ebb413a66e1d9d5fe66e315fa071cc7b
@@ -302,7 +302,7 @@ char *jabber_saslprep(const char *in)
 	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;


More information about the Commits mailing list