From: Jon Trulson Date: Wed, 13 Jun 2018 19:27:46 +0000 (-0600) Subject: libDtTerm: Fix for a coredump seen on OpenBSD X-Git-Tag: 2.3.0~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c1bef9e8d60471405137d6941bc6be18700fe437;p=oweals%2Fcde.git libDtTerm: Fix for a coredump seen on OpenBSD --- 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)); }