diff src/quickfix.c @ 9573:9946c4c33598 v7.4.2064

commit https://github.com/vim/vim/commit/4f5c5f29806e53251b7a7b68ce7de86a21ff8015 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 17 22:25:36 2016 +0200 patch 7.4.2064 Problem: Coverity warns for possible buffer overflow. Solution: Use vim_strcat() instead of strcat().
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Jul 2016 22:30:07 +0200
parents ccbd2e604e59
children 2fb7e008ac9b
line wrap: on
line diff
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2595,7 +2595,7 @@ qf_msg(qf_info_T *qi, int which, char *l
     {
 	while (STRLEN(buf) < 34)
 	    STRCAT(buf, " ");
-	STRCAT(buf, title);
+	vim_strcat(buf, title, IOSIZE);
     }
     trunc_string(buf, buf, Columns - 1, IOSIZE);
     msg(buf);