Changed memcpy() to memmove() to stop coredumping on OpenBSD 5.7.
This commit is contained in:
committed by
Jon Trulson
parent
aaab59761f
commit
ecdf9eba10
@@ -1969,7 +1969,7 @@ _DtTermPrimBufferDeleteLine
|
|||||||
copyLength = MAX(0, MIN(ROWS(tb), lastUsedRow) - source - length);
|
copyLength = MAX(0, MIN(ROWS(tb), lastUsedRow) - source - length);
|
||||||
if (copyLength > 0) {
|
if (copyLength > 0) {
|
||||||
#ifdef USE_MEMCPY
|
#ifdef USE_MEMCPY
|
||||||
(void) memcpy(&(LINE_OF_TBUF(tb, source)),
|
(void) memmove(&(LINE_OF_TBUF(tb, source)),
|
||||||
&(LINE_OF_TBUF(tb, source + length)),
|
&(LINE_OF_TBUF(tb, source + length)),
|
||||||
copyLength * sizeof(TermLine));
|
copyLength * sizeof(TermLine));
|
||||||
#else /* USE_MEMCPY */
|
#else /* USE_MEMCPY */
|
||||||
|
|||||||
Reference in New Issue
Block a user