ncal: fix a reference to an out-of-scope stack buffer

PR:		214237
Submitted by:	Jonathan de Boyne Pollard
MFC after:	3 days
Sponsored by:	Dell EMC
This commit is contained in:
vangyzen 2016-11-05 14:08:14 +00:00
parent e61af21d3a
commit e950451b7a

View File

@ -1110,7 +1110,8 @@ highlight(char *dst, char *src, int len, int *extralen)
static const char *term_so, *term_se;
if (first) {
char tbuf[1024], cbuf[512], *b;
static char cbuf[512];
char tbuf[1024], *b;
term_se = term_so = NULL;