changeset 17161:51f8dac490d7

If we're operating on ASCII characters only, we should use g_ascii_isalnum.
author Richard Laager <rlaager@wiktel.com>
date Sun, 20 May 2007 15:56:53 +0000
parents 251ed95cc52c
children 1f0657cd89d3
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Sun May 20 15:02:03 2007 +0000
+++ b/libpurple/util.c	Sun May 20 15:56:53 2007 +0000
@@ -4212,7 +4212,7 @@
 		gunichar c = g_utf8_get_char(iter);
 		/* If the character is an ASCII character and is alphanumeric,
 		 * or one of the specified values, no need to escape */
-		if (c < 128 && (isalnum(c) || c == '@' || c == '-' ||
+		if (c < 128 && (g_ascii_isalnum(c) || c == '@' || c == '-' ||
 				c == '_' || c == '.' || c == '#')) {
 			buf[j++] = c;
 		} else {