0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0109

This commit is contained in:
Bram Moolenaar
2005-07-18 21:58:11 +00:00
parent bbebc85750
commit ce0842a6ee
30 changed files with 178 additions and 134 deletions

View File

@@ -2532,8 +2532,7 @@ op_change(oap)
{
if ((ins_text = alloc_check((unsigned)(ins_len + 1))) != NULL)
{
STRNCPY(ins_text, firstline + bd.textcol, ins_len);
ins_text[ins_len] = NUL;
vim_strncpy(ins_text, firstline + bd.textcol, (size_t)ins_len);
for (linenr = oap->start.lnum + 1; linenr <= oap->end.lnum;
linenr++)
{