diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-17 22:25:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-17 22:25:36 +0200 |
commit | 4f5c5f29806e53251b7a7b68ce7de86a21ff8015 (patch) | |
tree | 39ecf195522bdbf7fd04feb1123f292425e3e84d /src/quickfix.c | |
parent | 73dad1e64cb42842d8259cb1a255a6fa59822f76 (diff) | |
download | vim-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.c | 2 |
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); |