diff --git a/global.c b/global.c index ca9f84bb76c5611c84773f3dd9cb0b8ce2671cfd..7739fe8be85f373471b314f6b881614a1d0fb8a2 100644 --- a/global.c +++ b/global.c @@ -125,7 +125,7 @@ regmatch_t regmatches[10]; /* Match positions for parenthetical subexpressions, max of 10 */ #ifdef ENABLE_COLOR regex_t color_regexp; /* Global to store compiled search regexp */ -regmatch_t colormatches; /* Match positions for parenthetical */ +regmatch_t colormatches[1]; /* Match positions for parenthetical */ #endif /* ENABLE_COLOR */ #endif