diff options
-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 | ||