diff --git a/cde/lib/DtTerm/Term/TermBuffer.c b/cde/lib/DtTerm/Term/TermBuffer.c index fa769e4a7..095fed270 100644 --- a/cde/lib/DtTerm/Term/TermBuffer.c +++ b/cde/lib/DtTerm/Term/TermBuffer.c @@ -639,8 +639,8 @@ _DtTermDeleteEnhancement ** end of the line to col */ copyCount = WIDTH(line) - (col + width); - memcpy(enh + col , enh + col + width, - copyCount * sizeof(DtTermEnhPart)); + memmove(enh + col , enh + col + width, + copyCount * sizeof(DtTermEnhPart)); }