0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0109

This commit is contained in:
Bram Moolenaar
2005-07-18 21:40:44 +00:00
parent e759a7aa9a
commit b635633989
11 changed files with 91 additions and 70 deletions

View File

@@ -3036,9 +3036,8 @@ maketitle()
else
{
p = transstr(gettail(curbuf->b_fname));
STRNCPY(buf, p, IOSIZE - 100);
vim_strncpy(buf, p, IOSIZE - 100);
vim_free(p);
buf[IOSIZE - 100] = NUL; /* in case it was too long */
}
switch (bufIsChanged(curbuf)
@@ -3071,15 +3070,15 @@ maketitle()
p = gettail_sep(buf + off);
if (p == buf + off)
/* must be a help buffer */
STRCPY(buf + off, _("help"));
vim_strncpy(buf + off, (char_u *)_("help"),
IOSIZE - off - 1);
else
*p = NUL;
/* translate unprintable chars */
p = transstr(buf + off);
STRNCPY(buf + off, p, IOSIZE - off);
vim_strncpy(buf + off, p, IOSIZE - off - 1);
vim_free(p);
buf[IOSIZE - 1] = NUL; /* in case it was too long */
STRCAT(buf, ")");
}