Sfoglia il codice sorgente

libDtTerm: Fix for a coredump seen on OpenBSD

Jon Trulson 6 anni fa
parent
commit
c1bef9e8d6
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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));
 
 }