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:
parent
e61af21d3a
commit
e950451b7a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user