1
0
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:
Bram Moolenaar
2016-07-17 22:25:36 +02:00
parent 73dad1e64c
commit 4f5c5f2980
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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,
/**/ /**/