diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-08-06 20:28:43 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-08-06 20:28:43 +0000 |
commit | 452a81b4138c18ffbec4cd53274f42b88fd9983d (patch) | |
tree | df4982be8b6463081ae40810c4d1d2f1dc3996d9 /src/ex_getln.c | |
parent | a064ac85018ac1f91b70d6941bbda3f981195c83 (diff) | |
download | vim-452a81b4138c18ffbec4cd53274f42b88fd9983d.zip |
updated for version 7.1-055
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 206da8065..3ddec2960 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4306,10 +4306,11 @@ ExpandFromContext(xp, pat, num_file, file, options) && pat[i + 1] == '\\' && pat[i + 2] == '\\' && pat[i + 3] == ' ') - STRCPY(pat + i, pat + i + 3); + mch_memmove(pat + i, pat + i + 3, + STRLEN(pat + i + 3) + 1); if (xp->xp_backslash == XP_BS_ONE && pat[i + 1] == ' ') - STRCPY(pat + i, pat + i + 1); + mch_memmove(pat + i, pat + i + 1, STRLEN(pat + i)); } } @@ -4552,7 +4553,7 @@ expand_shellcmd(filepat, num_file, file, flagsarg) pat = vim_strsave(filepat); for (i = 0; pat[i]; ++i) if (pat[i] == '\\' && pat[i + 1] == ' ') - STRCPY(pat + i, pat + i + 1); + mch_memmove(pat + i, pat + i + 1, STRLEN(pat + i)); flags |= EW_FILE | EW_EXEC; |