updated for version 7.3.675

Problem:    Using uninitialized memory with very long file name.
Solution:   Put NUL after text when it is truncated. (ZyX)
This commit is contained in:
Bram Moolenaar
2012-10-03 17:12:47 +02:00
parent 7bcbce3e66
commit 8302fbd6ab
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -3058,7 +3058,7 @@ fileinfo(fullname, shorthelp, dont_truncate)
*p++ = '"';
if (buf_spname(curbuf) != NULL)
STRCPY(p, buf_spname(curbuf));
vim_strncpy(p, buf_spname(curbuf), IOSIZE - (p - buffer) - 1);
else
{
if (!fullname && curbuf->b_fname != NULL)
+2
View File
@@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
675,
/**/
674,
/**/