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:
parent
aaab59761f
commit
ecdf9eba10
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue