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,
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. */
READ_BOOL(color_profile.use_image);
READ_INT(color_profile.input_type);
- if (strncasecmp(option, "color_profile.input_file_", 25) == 0)
+ if (g_ascii_strncasecmp(option, "color_profile.input_file_", 25) == 0)
{
i = strtol(option + 25, NULL, 0) - 1;
if (i >= 0 && i < COLOR_PROFILE_INPUTS)
read_char_option(f, option, option, value, &options->color_profile.input_file[i]);
}
}
- if (strncasecmp(option, "color_profile.input_name_", 25) == 0)
+ if (g_ascii_strncasecmp(option, "color_profile.input_name_", 25) == 0)
{
i = strtol(option + 25, NULL, 0) - 1;
if (i >= 0 && i < COLOR_PROFILE_INPUTS)
/* External Programs */
- if (strncasecmp(option, "external_", 9) == 0)
+ if (g_ascii_strncasecmp(option, "external_", 9) == 0)
{
i = strtol(option + 9, NULL, 0);
if (i > 0 && i <= GQ_EDITOR_SLOTS)
}
/* Exif */
- if (0 == strncasecmp(option, "exif.display.", 13))
+ if (0 == g_ascii_strncasecmp(option, "exif.display.", 13))
{
for (i = 0; ExifUIList[i].key; i++)
if (0 == g_ascii_strcasecmp(option + 13, ExifUIList[i].key))