Changed memcpy() to memmove() to stop coredumping on OpenBSD 5.7.
This commit is contained in:
parent
aaab59761f
commit
ecdf9eba10
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue