Changed memcpy() to memmove() to stop coredumping on OpenBSD 5.7.
authorDouglas Carmichael <dcarmich@dcarmichael.net>
Sun, 21 Jun 2015 08:39:01 +0000 (03:39 -0500)
committerJon Trulson <jon@radscan.com>
Sun, 21 Jun 2015 23:07:41 +0000 (17:07 -0600)
cde/lib/DtTerm/TermPrim/TermPrimBuffer.c

index 2310f696905d5fd9ab5692b6b149035f65f8f851..42c69489eff84a95cd228fc109209cf065cfb883 100644 (file)
@@ -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 */