Browse Source

libDtTerm: Fix for a coredump seen on OpenBSD

Jon Trulson 5 years ago
parent
commit
c1bef9e8d6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cde/lib/DtTerm/Term/TermBuffer.c

+ 2 - 2
cde/lib/DtTerm/Term/TermBuffer.c

@@ -639,8 +639,8 @@ _DtTermDeleteEnhancement
     ** end of the line to col
     */
     copyCount = WIDTH(line) - (col + width);
-    memcpy(enh + col , enh + col + width,
-           copyCount * sizeof(DtTermEnhPart));
+    memmove(enh + col , enh + col + width,
+            copyCount * sizeof(DtTermEnhPart));
 
 }