commit | c3b730796caf9b8faa2db6f5a35fa55a1368bfd5 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Dec 07 16:30:42 2007 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Dec 07 16:30:42 2007 +0000 |
tree | 83ce9b1af57cfc14246a643458e0ae8b27b17974 | |
parent | e6f565a7becb53a19bd56b9d61fbeb8d52f5d42b [diff] [blame] |
updated for version 7.1-170
diff --git a/src/getchar.c b/src/getchar.c index 4d6da38..0e78a7b 100644 --- a/src/getchar.c +++ b/src/getchar.c
@@ -253,8 +253,9 @@ return; } else if (buf->bh_index != 0) - STRCPY(buf->bh_first.b_next->b_str, - buf->bh_first.b_next->b_str + buf->bh_index); + mch_memmove(buf->bh_first.b_next->b_str, + buf->bh_first.b_next->b_str + buf->bh_index, + STRLEN(buf->bh_first.b_next->b_str + buf->bh_index) + 1); buf->bh_index = 0; if (buf->bh_space >= (int)slen)