diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-19 21:36:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 21:36:31 -0400 |
commit | 30befcdce47b4964b4d2a5aeb078ddec8e2fcc0b (patch) | |
tree | d8df645e9f993a6903dda09fdf5d24c45680850b /src/nvim/quickfix.c | |
parent | 045e47ec5522b6449e849bc343697ab81ebd7814 (diff) | |
parent | 49ab1b91e7cccb4fc5edad6d2fa8c547fb38942b (diff) | |
download | rneovim-30befcdce47b4964b4d2a5aeb078ddec8e2fcc0b.tar.gz rneovim-30befcdce47b4964b4d2a5aeb078ddec8e2fcc0b.tar.bz2 rneovim-30befcdce47b4964b4d2a5aeb078ddec8e2fcc0b.zip |
Merge pull request #14592 from janlazo/vim-8.2.2869
vim-patch:8.2.{2869,2871}
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 464d72eccb..e318e9a078 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3919,13 +3919,13 @@ static int qf_buf_add_line(buf_T *buf, linenr_T lnum, const qfline_T *qfp, buf_T *errbuf; if (qfp->qf_module != NULL) { - STRLCPY(IObuff, qfp->qf_module, IOSIZE - 1); + STRLCPY(IObuff, qfp->qf_module, IOSIZE); len = (int)STRLEN(IObuff); } else if (qfp->qf_fnum != 0 && (errbuf = buflist_findnr(qfp->qf_fnum)) != NULL && errbuf->b_fname != NULL) { if (qfp->qf_type == 1) { // :helpgrep - STRLCPY(IObuff, path_tail(errbuf->b_fname), IOSIZE - 1); + STRLCPY(IObuff, path_tail(errbuf->b_fname), IOSIZE); } else { // Shorten the file name if not done already. // For optimization, do this only for the first entry in a @@ -3938,7 +3938,7 @@ static int qf_buf_add_line(buf_T *buf, linenr_T lnum, const qfline_T *qfp, } shorten_buf_fname(errbuf, dirname, false); } - STRLCPY(IObuff, errbuf->b_fname, IOSIZE - 1); + STRLCPY(IObuff, errbuf->b_fname, IOSIZE); } len = (int)STRLEN(IObuff); } else { |