mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +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) {
|
||||
STRCAT(buf, " ");
|
||||
}
|
||||
STRCAT(buf, title);
|
||||
vim_strcat(buf, title, IOSIZE);
|
||||
}
|
||||
trunc_string(buf, buf, (int)Columns - 1, IOSIZE);
|
||||
msg(buf);
|
||||
|
Reference in New Issue
Block a user