From 480b02fdb2f862d427beee189b82c40aa7bb4174 Mon Sep 17 00:00:00 2001 From: lonerover Date: Wed, 18 Jan 2017 12:04:43 +0800 Subject: 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 --- src/nvim/quickfix.c | 2 +- src/nvim/version.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); diff --git a/src/nvim/version.c b/src/nvim/version.c index 6e94846907..0f0666ddf9 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -376,7 +376,7 @@ static int included_patches[] = { // 2067, 2066, 2065, - // 2064, + 2064, // 2063 NA 2062, // 2061, -- cgit