]> granicus.if.org Git - neomutt/commitdiff
mutt_str_startswith - browser.c (leftover)
authorPietro Cerutti <gahr@gahr.ch>
Mon, 12 Nov 2018 10:52:21 +0000 (10:52 +0000)
committerRichard Russon <rich@flatcap.org>
Wed, 14 Nov 2018 15:10:31 +0000 (15:10 +0000)
browser.c

index 2277528cf1769dbca29f9493692ba78f55ee0338..fbd7d8fde25373d72c26d289b6ab3767f197f5ce 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -809,7 +809,7 @@ static int examine_directory(struct Menu *menu, struct BrowserState *state,
       struct NntpMboxData *mdata = adata->groups_list[i];
       if (!mdata)
         continue;
-      if (prefix && *prefix && (strncmp(prefix, mdata->group, strlen(prefix)) != 0))
+      if (prefix && *prefix && !mutt_str_startswith(mdata->group, prefix, CASE_MATCH))
         continue;
       if (Mask && Mask->regex &&
           !((regexec(Mask->regex, mdata->group, 0, NULL, 0) == 0) ^ Mask->not))