diff options
author | lonerover <pathfinder1644@yahoo.com> | 2017-01-18 12:04:43 +0800 |
---|---|---|
committer | lonerover <pathfinder1644@yahoo.com> | 2017-01-19 10:11:53 +0800 |
commit | 480b02fdb2f862d427beee189b82c40aa7bb4174 (patch) | |
tree | e549cda2b3e2e79846851ab1b095c0b80c3cd29f /src/nvim/quickfix.c | |
parent | 827f2f9f6b75ba182d27c30a6a056968bed65eaa (diff) | |
download | rneovim-480b02fdb2f862d427beee189b82c40aa7bb4174.tar.gz rneovim-480b02fdb2f862d427beee189b82c40aa7bb4174.tar.bz2 rneovim-480b02fdb2f862d427beee189b82c40aa7bb4174.zip |
vim-patch:7.4.2064
Problem: Coverity warns for possible buffer overflow.
Solution: Use vim_strcat() instead of strcat().
https://github.com/vim/vim/commit/4f5c5f29806e53251b7a7b68ce7de86a21ff8015
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 3b5fa67f63..ca2b356863 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -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); |