From: Thomas Roessler Date: Wed, 16 Dec 1998 10:34:45 +0000 (+0000) Subject: Fix a segfault noted by Stephan Hack. (Fix noted by Vikas.) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19210c400f857c841312a190b1acf4e3f87aedbf;p=neomutt Fix a segfault noted by Stephan Hack. (Fix noted by Vikas.) --- diff --git a/color.c b/color.c index 2f58296da..7e108b73f 100644 --- a/color.c +++ b/color.c @@ -509,7 +509,7 @@ add_pattern (COLOR_LINE **top, const char *s, int sensitive, { int i; - strfcpy(buf, tmp->pattern, sizeof(buf)); + strfcpy(buf, NONULL(tmp->pattern), sizeof(buf)); mutt_check_simple (buf, sizeof (buf), NONULL(SimpleSearch)); if((tmp->color_pattern = mutt_pattern_comp (buf, M_FULL_MSG, err)) == NULL) {