瀏覽代碼

libDtTerm: Fix for a coredump seen on OpenBSD

Jon Trulson 6 年之前
父節點
當前提交
c1bef9e8d6
共有 1 個文件被更改,包括 2 次插入2 次删除
  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));
 
 }