libDtTerm: Fix for a coredump seen on OpenBSD
This commit is contained in:
@@ -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));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user