I blame other languages

This commit is contained in:
Jari Matilainen 2017-01-13 20:52:49 +00:00
commit 7c540a0139

View file

@ -179,7 +179,7 @@ int strarray_find_prefix(char **array, const char *item)
index = 0; index = 0;
for (tmp = array; *tmp != NULL; tmp++, index++) { for (tmp = array; *tmp != NULL; tmp++, index++) {
//if (g_str_has_prefix(g_ascii_strdown(*tmp, -1), item)) //if (g_str_has_prefix(g_ascii_strdown(*tmp, -1), item))
if (g_ascii_strncasecmp(*tmp, item, length(item)) == 0) if (g_ascii_strncasecmp(*tmp, item, strlen(item)) == 0)
return index; return index;
} }