1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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