Skip to content
Snippets Groups Projects
Commit ec3cfeb1 authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

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)
parent 1e91f260
No related merge requests found
......@@ -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)
......
......@@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
675,
/**/
674,
/**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment