mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
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
a79e9d0fec
commit
bcad3423b8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308340
@ -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