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

@@ -7286,7 +7286,7 @@ ex_cd(eap)
if (p == NULL || *p == NUL) /* empty is the same as not set */
NameBuff[0] = NUL;
else
STRNCPY(NameBuff, p, MAXPATHL);
vim_strncpy(NameBuff, p, MAXPATHL - 1);
# else
expand_env((char_u *)"$HOME", NameBuff, MAXPATHL);
# endif