]> granicus.if.org Git - neomutt/commitdiff
Fix a segfault noted by Stephan Hack. (Fix noted by Vikas.)
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 16 Dec 1998 10:34:45 +0000 (10:34 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 16 Dec 1998 10:34:45 +0000 (10:34 +0000)
color.c

diff --git a/color.c b/color.c
index 2f58296da39505a1ea61ca7dbb29736cbe9b3f68..7e108b73fa0ae12be66f8ab198713ee620da6047 100644 (file)
--- 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)
       {