vim-patch:7.4.2064

Problem:    Coverity warns for possible buffer overflow.
Solution:   Use vim_strcat() instead of strcat().

4f5c5f2980
This commit is contained in:
lonerover 2017-01-18 12:04:43 +08:00
parent 827f2f9f6b
commit 480b02fdb2
2 changed files with 2 additions and 2 deletions

View File

@ -2121,7 +2121,7 @@ static void qf_msg(qf_info_T *qi, int which, char *lead)
while (STRLEN(buf) < 34) {
STRCAT(buf, " ");
}
STRCAT(buf, title);
vim_strcat(buf, title, IOSIZE);
}
trunc_string(buf, buf, (int)Columns - 1, IOSIZE);
msg(buf);

View File

@ -376,7 +376,7 @@ static int included_patches[] = {
// 2067,
2066,
2065,
// 2064,
2064,
// 2063 NA
2062,
// 2061,