# HG changeset patch # User vimboss # Date 1195578269 0 # Node ID 215d6b2a1816a5eaf5f5d2cb7cb1b22d24adbdab # Parent 69bcc0c891d706d3383f013e9e5f8876b6c76d4f updated for version 7.1-159 diff --git a/src/ex_cmds.c b/src/ex_cmds.c --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -4885,7 +4885,8 @@ do_sub(eap) ++line2; /* move the cursor to the new line, like Vi */ ++curwin->w_cursor.lnum; - STRCPY(new_start, p1 + 1); /* copy the rest */ + /* copy the rest */ + mch_memmove(new_start, p1 + 1, STRLEN(p1 + 1) + 1); p1 = new_start - 1; } } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 159, +/**/ 158, /**/ 157,