Changed memcpy() to memmove() to stop coredumping on OpenBSD 5.7.

This commit is contained in:
Douglas Carmichael
2015-06-21 03:39:01 -05:00
committed by Jon Trulson
parent aaab59761f
commit ecdf9eba10

View 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 */