Mercurial > vim
changeset 1459:73995e7c06e6 v7.1.174
updated for version 7.1-174
author | vimboss |
---|---|
date | Sun, 09 Dec 2007 18:38:35 +0000 |
parents | 8a6c67218fcc |
children | b0dabd584b8f |
files | src/ex_cmds.c src/ex_docmd.c src/version.c |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -1650,7 +1650,7 @@ viminfo_error(errnum, message, line) { vim_snprintf((char *)IObuff, IOSIZE, _("%sviminfo: %s in line: "), errnum, message); - STRNCAT(IObuff, line, IOSIZE - STRLEN(IObuff)); + STRNCAT(IObuff, line, IOSIZE - STRLEN(IObuff) - 1); if (IObuff[STRLEN(IObuff) - 1] == '\n') IObuff[STRLEN(IObuff) - 1] = NUL; emsg(IObuff);