From b0e6c89c255526ff9a24d2aae43cac1571064faa Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Fri, 9 Nov 2018 16:10:06 +0000 Subject: [PATCH] mutt_str_startswith - mutt/list.c --- mutt/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt/list.c b/mutt/list.c index 71fa4d0ee..859b30b60 100644 --- a/mutt/list.c +++ b/mutt/list.c @@ -172,7 +172,7 @@ bool mutt_list_match(const char *s, struct ListHead *h) struct ListNode *np = NULL; STAILQ_FOREACH(np, h, entries) { - if ((*np->data == '*') || (mutt_str_strncasecmp(s, np->data, strlen(np->data)) == 0)) + if ((*np->data == '*') || mutt_str_startswith(s, np->data, CASE_IGNORE)) return true; } return false; -- 2.50.0