diff src/collect-io.c @ 605:651ae2be1031

Use g_ascii_strncasecmp() instead of strncasecmp() where applicable. Add a FIXME where potential improper usage of strncasecmp() is made.
author zas_
date Thu, 08 May 2008 12:50:25 +0000
parents 905688aa2317
children 97dd95e210c8
line wrap: on
line diff
--- a/src/collect-io.c	Thu May 08 12:38:34 2008 +0000
+++ b/src/collect-io.c	Thu May 08 12:50:25 2008 +0000
@@ -119,7 +119,7 @@
 		if (*p == '#')
 			{
 			if (!need_header) continue;
-			if (strncasecmp(p, GQ_COLLECTION_MARKER, strlen(GQ_COLLECTION_MARKER)) == 0)
+			if (g_ascii_strncasecmp(p, GQ_COLLECTION_MARKER, strlen(GQ_COLLECTION_MARKER)) == 0)
 				{
 				/* Looks like an official collection, allow unchecked input.
 				 * All this does is allow adding files that may not exist,
@@ -136,7 +136,7 @@
 				cd->window_read = TRUE;
 				if (only_geometry) break;
 				}
-			else if (strncasecmp(p, "#GQview collection", strlen("#GQview collection")) == 0)
+			else if (g_ascii_strncasecmp(p, "#GQview collection", strlen("#GQview collection")) == 0)
 				{
 				/* As 2008/04/15 there is no difference between our collection file format
 				 * and GQview 2.1.5 collection file format so ignore failures as well. */