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.
diff --git a/src/screen.c b/src/screen.c
index 92eb232..0e76d8c 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -9876,7 +9876,7 @@
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);