diff libpurple/util.c @ 27936:703b20fa6c5c

g_strncasecmp is deprecated. I thought I removed these already. Anyway, I think these should be good as ASCII.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 18 Aug 2009 04:34:30 +0000
parents 9358464cdf6a
children c9c038529f38 39716f7d2c93
line wrap: on
line diff
--- a/libpurple/util.c	Tue Aug 18 03:34:24 2009 +0000
+++ b/libpurple/util.c	Tue Aug 18 04:34:30 2009 +0000
@@ -3820,7 +3820,7 @@
 	/* Note: data is _not_ nul-terminated.  */
 	if (data_len > header_len) {
 		if (header[0] == '\n')
-			p = (g_strncasecmp(data, header + 1, header_len - 1) == 0) ? data : NULL;
+			p = (g_ascii_strncasecmp(data, header + 1, header_len - 1) == 0) ? data : NULL;
 		if (!p)
 			p = purple_strcasestr(data, header);
 		if (p)
@@ -3857,7 +3857,7 @@
 content_is_chunked(const char *data, size_t data_len)
 {
 	const char *p = find_header_content(data, data_len, "\nTransfer-Encoding: ", sizeof("\nTransfer-Encoding: ") - 1);
-	if (p && g_strncasecmp(p, "chunked", 7) == 0)
+	if (p && g_ascii_strncasecmp(p, "chunked", 7) == 0)
 		return TRUE;
 
 	return FALSE;