• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

修订版96c9bdfc0f05bacbc1dd6e40c361a7f5a6aefd98 (tree)
时间2015-12-22 11:59:30
作者Andreas Gampe <agampe@goog...>
CommiterChih-Wei Huang

Log Message

System/core: Use memmove

Should use memmove when you expect overlap.

Change-Id: I268a173db40a4be54232958e37aa8a03c2a885ee

更改概述

差异

--- a/libutils/String8.cpp
+++ b/libutils/String8.cpp
@@ -430,7 +430,7 @@ bool String8::removeAll(const char* other) {
430430 next = len;
431431 }
432432
433- memcpy(buf + tail, buf + index + skip, next - index - skip);
433+ memmove(buf + tail, buf + index + skip, next - index - skip);
434434 tail += next - index - skip;
435435 index = next;
436436 }