forked from aniani/vim
updated for version 7.3.677
Problem: buf_spname() is used inconsistently. Solution: Make the return type a char_u pointer. Check the size of the returned string.
This commit is contained in:
@@ -9876,7 +9876,7 @@ get_trans_bufname(buf)
|
||||
buf_T *buf;
|
||||
{
|
||||
if (buf_spname(buf) != NULL)
|
||||
STRCPY(NameBuff, buf_spname(buf));
|
||||
vim_strncpy(NameBuff, buf_spname(buf), MAXPATHL - 1);
|
||||
else
|
||||
home_replace(buf, buf->b_fname, NameBuff, MAXPATHL, TRUE);
|
||||
trans_characters(NameBuff, MAXPATHL);
|
||||
|
Reference in New Issue
Block a user