]> granicus.if.org Git - vim/commitdiff
patch 7.4.2064 v7.4.2064
authorBram Moolenaar <Bram@vim.org>
Sun, 17 Jul 2016 20:25:36 +0000 (22:25 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 17 Jul 2016 20:25:36 +0000 (22:25 +0200)
Problem:    Coverity warns for possible buffer overflow.
Solution:   Use vim_strcat() instead of strcat().

src/quickfix.c
src/version.c

index b2b6e8e294bbda0f42f09e4564a403197a37af63..3794e6ab09aa92e55e81e57f1f24f881856530ff 100644 (file)
@@ -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);
index e46a13f60f9cb70b74cb80efb2340099932a5167..e1fcacac238c8f3cce49384db7f347ed9d797e94 100644 (file)
@@ -758,6 +758,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2064,
 /**/
     2063,
 /**/