diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:47:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:47:53 +0000 |
commit | bbebc857507f24c82cd5bb2f80305b74390b4611 (patch) | |
tree | 4c1a949017d7975cb3e61b246783369bb529d53d /src/os_msdos.c | |
parent | fe3ca8ddd9b85240387b6fa7934af3317e25b731 (diff) | |
download | vim-git-bbebc857507f24c82cd5bb2f80305b74390b4611.tar.gz |
updated for version 7.0109
Diffstat (limited to 'src/os_msdos.c')
-rw-r--r-- | src/os_msdos.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/os_msdos.c b/src/os_msdos.c index a70d58e3d..36304cc61 100644 --- a/src/os_msdos.c +++ b/src/os_msdos.c @@ -1515,8 +1515,7 @@ mch_FullName( { if (!force && mch_isFullName(fname)) /* already expanded */ { - STRNCPY(buf, fname, len); - buf[len - 1] = NUL; + vim_strncpy(buf, fname, len - 1); slash_adjust(buf); return OK; } @@ -1533,8 +1532,7 @@ mch_FullName( if (!_truename(fname, fullpath)) return FAIL; slash_adjust(fullpath); /* Only needed when 'shellslash' set */ - STRNCPY(buf, fullpath, len); - buf[len - 1] = NUL; + vim_strncpy(buf, fullpath, len - 1); return OK; # else /* Old code, to be deleted... */ @@ -3074,9 +3072,8 @@ mch_get_host_name( int len) { #ifdef DJGPP - STRNCPY(s, "PC (32 bits Vim)", len); + vim_strncpy(s, "PC (32 bits Vim)", len - 1); #else - STRNCPY(s, "PC (16 bits Vim)", len); + vim_strncpy(s, "PC (16 bits Vim)", len - 1); #endif - s[len - 1] = NUL; /* make sure it's terminated */ } |