]> granicus.if.org Git - neomutt/commitdiff
calloc size - mutt_select_file
authorRichard Russon <rich@flatcap.org>
Mon, 19 Mar 2018 23:23:51 +0000 (23:23 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 20 Mar 2018 01:01:45 +0000 (01:01 +0000)
browser.c

index fcc874ade50b85478fd68ebca4e2550c8daaa63c..9f26995494568d87fa954af33898014c6a4e8864 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -1822,7 +1822,7 @@ void mutt_select_file(char *f, size_t flen, int flags, char ***files, int *numfi
             }
             else
             {
-              Mask = mutt_mem_calloc(1, sizeof(struct Regex *));
+              Mask = mutt_mem_calloc(1, sizeof(struct Regex));
             }
             mutt_str_replace(&Mask->pattern, buf);
             Mask->regex = rx;