1
0
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:
Bram Moolenaar
2012-10-03 18:25:00 +02:00
parent b213da0b57
commit e1704bada4
7 changed files with 17 additions and 18 deletions

View File

@@ -7602,7 +7602,7 @@ ex_tabs(eap)
msg_putchar(bufIsChanged(wp->w_buffer) ? '+' : ' ');
msg_putchar(' ');
if (buf_spname(wp->w_buffer) != NULL)
STRCPY(IObuff, buf_spname(wp->w_buffer));
vim_strncpy(IObuff, buf_spname(wp->w_buffer), IOSIZE - 1);
else
home_replace(wp->w_buffer, wp->w_buffer->b_fname,
IObuff, IOSIZE, TRUE);