From: Douglas Carmichael Date: Sun, 21 Jun 2015 08:39:01 +0000 (-0500) Subject: Changed memcpy() to memmove() to stop coredumping on OpenBSD 5.7. X-Git-Tag: 2.2.4~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ecdf9eba10b57cd67ac2fd09d7455436dac21bb3;p=oweals%2Fcde.git Changed memcpy() to memmove() to stop coredumping on OpenBSD 5.7. --- diff --git a/cde/lib/DtTerm/TermPrim/TermPrimBuffer.c b/cde/lib/DtTerm/TermPrim/TermPrimBuffer.c index 2310f696..42c69489 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrimBuffer.c +++ b/cde/lib/DtTerm/TermPrim/TermPrimBuffer.c @@ -1969,7 +1969,7 @@ _DtTermPrimBufferDeleteLine copyLength = MAX(0, MIN(ROWS(tb), lastUsedRow) - source - length); if (copyLength > 0) { #ifdef USE_MEMCPY - (void) memcpy(&(LINE_OF_TBUF(tb, source)), + (void) memmove(&(LINE_OF_TBUF(tb, source)), &(LINE_OF_TBUF(tb, source + length)), copyLength * sizeof(TermLine)); #else /* USE_MEMCPY */