Skip to content

Commit 4f5c5f2

Browse files
committed
patch 7.4.2064
Problem: Coverity warns for possible buffer overflow. Solution: Use vim_strcat() instead of strcat().
1 parent 73dad1e commit 4f5c5f2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/quickfix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2595,7 +2595,7 @@ qf_msg(qf_info_T *qi, int which, char *lead)
25952595
{
25962596
while (STRLEN(buf) < 34)
25972597
STRCAT(buf, " ");
2598-
STRCAT(buf, title);
2598+
vim_strcat(buf, title, IOSIZE);
25992599
}
26002600
trunc_string(buf, buf, Columns - 1, IOSIZE);
26012601
msg(buf);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ static char *(features[]) =
758758

759759
static int included_patches[] =
760760
{ /* Add new patch number below this line */
761+
/**/
762+
2064,
761763
/**/
762764
2063,
763765
/**/

0 commit comments

Comments
 (0)