diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:40:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:40:44 +0000 |
commit | b635633989f0ff5a5dbb564d65d332741f0e3e8d (patch) | |
tree | c7c744c865d0004b0ed58a2f573d8cbbce7ab7b8 /src/buffer.c | |
parent | e759a7aa9a514626cd0373d1bd4e92777b1730c5 (diff) | |
download | vim-git-b635633989f0ff5a5dbb564d65d332741f0e3e8d.tar.gz |
updated for version 7.0109
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c index ce984ed02..07e9723a0 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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, ")"); } |