Mercurial > vim
changeset 1341:2ae2dd2591fa v7.1.055
updated for version 7.1-055
author | vimboss |
---|---|
date | Mon, 06 Aug 2007 20:28:43 +0000 |
parents | 8e42199f5121 |
children | 6974b167d75e |
files | src/buffer.c src/charset.c src/eval.c src/ex_getln.c src/misc1.c src/regexp.c src/termlib.c src/version.c |
diffstat | 8 files changed, 14 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c +++ b/src/buffer.c @@ -4860,7 +4860,7 @@ chk_modeline(lnum, flags) */ for (e = s; *e != ':' && *e != NUL; ++e) if (e[0] == '\\' && e[1] == ':') - STRCPY(e, e + 1); + mch_memmove(e, e + 1, STRLEN(e)); if (*e == NUL) end = TRUE;
--- a/src/charset.c +++ b/src/charset.c @@ -1898,7 +1898,7 @@ backslash_halve(p) { for ( ; *p; ++p) if (rem_backslash(p)) - STRCPY(p, p + 1); + mch_memmove(p, p + 1, STRLEN(p)); } /*
--- a/src/eval.c +++ b/src/eval.c @@ -13807,7 +13807,7 @@ f_resolve(argvars, rettv) } /* Shorten "remain". */ if (*q != NUL) - STRCPY(remain, q - 1); + mch_memmove(remain, q - 1, STRLEN(q - 1) + 1); else { vim_free(remain);
--- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4306,10 +4306,11 @@ ExpandFromContext(xp, pat, num_file, fil && 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, 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;
--- a/src/misc1.c +++ b/src/misc1.c @@ -8635,7 +8635,7 @@ dos_expandpath( for (p = buf + wildoff; p < s; ++p) if (rem_backslash(p)) { - STRCPY(p, p + 1); + mch_memmove(p, p + 1, STRLEN(p)); --e; --s; } @@ -8936,7 +8936,7 @@ unix_expandpath(gap, path, wildoff, flag for (p = buf + wildoff; p < s; ++p) if (rem_backslash(p)) { - STRCPY(p, p + 1); + mch_memmove(p, p + 1, STRLEN(p)); --e; --s; }
--- a/src/regexp.c +++ b/src/regexp.c @@ -6637,9 +6637,9 @@ regtilde(source, magic) } } else if (magic) - STRCPY(p, p + 1); /* remove '~' */ + mch_memmove(p, p + 1, STRLEN(p)); /* remove '~' */ else - STRCPY(p, p + 2); /* remove '\~' */ + mch_memmove(p, p + 2, STRLEN(p) - 1); /* remove '\~' */ --p; } else