summaryrefslogtreecommitdiff
path: root/src/quickfix.c
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 /src/quickfix.c
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().
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c2
1 files changed, 1 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);