From c1bef9e8d60471405137d6941bc6be18700fe437 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Wed, 13 Jun 2018 13:27:46 -0600 Subject: [PATCH] libDtTerm: Fix for a coredump seen on OpenBSD --- cde/lib/DtTerm/Term/TermBuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/lib/DtTerm/Term/TermBuffer.c b/cde/lib/DtTerm/Term/TermBuffer.c index fa769e4a..095fed27 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)); } -- 2.25.1