diff options
author | Ron Yorston <rmy@pobox.com> | 2023-02-13 10:01:35 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-02-13 10:01:35 +0000 |
commit | 4e5fb4341fddc2b99e815f27ac577d85a57994c2 (patch) | |
tree | c9e2eae6d2752d7e7f907ad39e3797b0fd5c3e02 /editors | |
parent | 0f2feac4b7e518e838b80d7b8ceac8f9699ae997 (diff) | |
parent | 93ae7464e6e460f25b73e4ffefd2d9a6499eae30 (diff) | |
download | busybox-w32-4e5fb4341fddc2b99e815f27ac577d85a57994c2.tar.gz busybox-w32-4e5fb4341fddc2b99e815f27ac577d85a57994c2.tar.bz2 busybox-w32-4e5fb4341fddc2b99e815f27ac577d85a57994c2.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'editors')
-rw-r--r-- | editors/ed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/ed.c b/editors/ed.c index 209ce9942..4a84f7433 100644 --- a/editors/ed.c +++ b/editors/ed.c | |||
@@ -720,7 +720,7 @@ static void subCommand(const char *cmd, int num1, int num2) | |||
720 | if (deltaLen <= 0) { | 720 | if (deltaLen <= 0) { |
721 | memcpy(&lp->data[offset], newStr, newLen); | 721 | memcpy(&lp->data[offset], newStr, newLen); |
722 | if (deltaLen) { | 722 | if (deltaLen) { |
723 | memcpy(&lp->data[offset + newLen], | 723 | memmove(&lp->data[offset + newLen], |
724 | &lp->data[offset + oldLen], | 724 | &lp->data[offset + oldLen], |
725 | lp->len - offset - oldLen); | 725 | lp->len - offset - oldLen); |
726 | 726 | ||