mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
libDtTerm: Fix for a coredump seen on OpenBSD
This commit is contained in:
parent
a35a7685b4
commit
c1bef9e8d6
1 changed files with 2 additions and 2 deletions
|
@ -639,8 +639,8 @@ _DtTermDeleteEnhancement
|
||||||
** end of the line to col
|
** end of the line to col
|
||||||
*/
|
*/
|
||||||
copyCount = WIDTH(line) - (col + width);
|
copyCount = WIDTH(line) - (col + width);
|
||||||
memcpy(enh + col , enh + col + width,
|
memmove(enh + col , enh + col + width,
|
||||||
copyCount * sizeof(DtTermEnhPart));
|
copyCount * sizeof(DtTermEnhPart));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue