mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user