diff options
Diffstat (limited to 'usr.bin/vi/ex/ex_shift.c')
-rw-r--r-- | usr.bin/vi/ex/ex_shift.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/ex/ex_shift.c b/usr.bin/vi/ex/ex_shift.c index e81aa9585bf..83bd36d12a7 100644 --- a/usr.bin/vi/ex/ex_shift.c +++ b/usr.bin/vi/ex/ex_shift.c @@ -10,7 +10,7 @@ #include "config.h" #ifndef lint -static const char sccsid[] = "@(#)ex_shift.c 10.10 (Berkeley) 3/6/96"; +static const char sccsid[] = "@(#)ex_shift.c 10.11 (Berkeley) 9/15/96"; #endif /* not lint */ #include <sys/types.h> @@ -146,7 +146,7 @@ shift(sp, cmdp, rl) *tbp++ = ' '; /* Add the original line. */ - memmove(tbp, p + oldidx, len - oldidx); + memcpy(tbp, p + oldidx, len - oldidx); /* Set the replacement line. */ if (db_set(sp, from, bp, (tbp + (len - oldidx)) - bp)) { |