mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
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:
@@ -2121,7 +2121,7 @@ static void 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, (int)Columns - 1, IOSIZE);
|
trunc_string(buf, buf, (int)Columns - 1, IOSIZE);
|
||||||
msg(buf);
|
msg(buf);
|
||||||
|
@@ -376,7 +376,7 @@ static int included_patches[] = {
|
|||||||
// 2067,
|
// 2067,
|
||||||
2066,
|
2066,
|
||||||
2065,
|
2065,
|
||||||
// 2064,
|
2064,
|
||||||
// 2063 NA
|
// 2063 NA
|
||||||
2062,
|
2062,
|
||||||
// 2061,
|
// 2061,
|
||||||
|
Reference in New Issue
Block a user