forked from aniani/vim
patch 7.4.2064
Problem: Coverity warns for possible buffer overflow. Solution: Use vim_strcat() instead of strcat().
This commit is contained in:
@@ -2595,7 +2595,7 @@ qf_msg(qf_info_T *qi, int which, char *lead)
|
|||||||
{
|
{
|
||||||
while (STRLEN(buf) < 34)
|
while (STRLEN(buf) < 34)
|
||||||
STRCAT(buf, " ");
|
STRCAT(buf, " ");
|
||||||
STRCAT(buf, title);
|
vim_strcat(buf, title, IOSIZE);
|
||||||
}
|
}
|
||||||
trunc_string(buf, buf, Columns - 1, IOSIZE);
|
trunc_string(buf, buf, Columns - 1, IOSIZE);
|
||||||
msg(buf);
|
msg(buf);
|
||||||
|
@@ -758,6 +758,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2064,
|
||||||
/**/
|
/**/
|
||||||
2063,
|
2063,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user