summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-17 22:25:36 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-17 22:25:36 +0200
commit4f5c5f29806e53251b7a7b68ce7de86a21ff8015 (patch)
tree39ecf195522bdbf7fd04feb1123f292425e3e84d
parent73dad1e64cb42842d8259cb1a255a6fa59822f76 (diff)
downloadvim-git-4f5c5f29806e53251b7a7b68ce7de86a21ff8015.tar.gz
patch 7.4.2064v7.4.2064
Problem: Coverity warns for possible buffer overflow. Solution: Use vim_strcat() instead of strcat().
-rw-r--r--src/quickfix.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index b2b6e8e29..3794e6ab0 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2595,7 +2595,7 @@ 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, Columns - 1, IOSIZE);
msg(buf);
diff --git a/src/version.c b/src/version.c
index e46a13f60..e1fcacac2 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2064,
+/**/
2063,
/**/
2062,