Explorar o código

libDtTerm: Fix for a coredump seen on OpenBSD

Jon Trulson %!s(int64=6) %!d(string=hai) anos
pai
achega
c1bef9e8d6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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));
 
 }