projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaab597
)
Changed memcpy() to memmove() to stop coredumping on OpenBSD 5.7.
author
Douglas Carmichael
<dcarmich@dcarmichael.net>
Sun, 21 Jun 2015 08:39:01 +0000
(
03:39
-0500)
committer
Jon Trulson
<jon@radscan.com>
Sun, 21 Jun 2015 23:07:41 +0000
(17:07 -0600)
cde/lib/DtTerm/TermPrim/TermPrimBuffer.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtTerm/TermPrim/TermPrimBuffer.c
b/cde/lib/DtTerm/TermPrim/TermPrimBuffer.c
index 2310f696905d5fd9ab5692b6b149035f65f8f851..42c69489eff84a95cd228fc109209cf065cfb883 100644
(file)
--- a/
cde/lib/DtTerm/TermPrim/TermPrimBuffer.c
+++ b/
cde/lib/DtTerm/TermPrim/TermPrimBuffer.c
@@
-1969,7
+1969,7
@@
_DtTermPrimBufferDeleteLine
copyLength = MAX(0, MIN(ROWS(tb), lastUsedRow) - source - length);
if (copyLength > 0) {
#ifdef USE_MEMCPY
- (void) mem
cpy
(&(LINE_OF_TBUF(tb, source)),
+ (void) mem
move
(&(LINE_OF_TBUF(tb, source)),
&(LINE_OF_TBUF(tb, source + length)),
copyLength * sizeof(TermLine));
#else /* USE_MEMCPY */