From 7c540a013995aaa76039dd89ee39e50771973d6f Mon Sep 17 00:00:00 2001 From: Jari Matilainen Date: Fri, 13 Jan 2017 20:52:49 +0000 Subject: [PATCH] I blame other languages --- src/core/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/misc.c b/src/core/misc.c index acac04d2..67298fa5 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -179,7 +179,7 @@ int strarray_find_prefix(char **array, const char *item) index = 0; for (tmp = array; *tmp != NULL; tmp++, index++) { //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; }