commit | dd060f01f68ee0e633e9cae24c4e565cda2032bd | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Thu Nov 13 15:50:17 2014 -0800 |
committer | Andreas Gampe <agampe@google.com> | Thu Nov 13 15:50:17 2014 -0800 |
tree | cbabc21db45e5f92172acd1ab582d5d9e7bfe96a | |
parent | b0a10b53eeeef6428bd034e3097391e9a7a4788b [diff] |
System/core: Use memmove Should use memmove when you expect overlap. Change-Id: I268a173db40a4be54232958e37aa8a03c2a885ee
diff --git a/libutils/String8.cpp b/libutils/String8.cpp index 9092cbc..3323b82 100644 --- a/libutils/String8.cpp +++ b/libutils/String8.cpp
@@ -424,7 +424,7 @@ next = len; } - memcpy(buf + tail, buf + index + skip, next - index - skip); + memmove(buf + tail, buf + index + skip, next - index - skip); tail += next - index - skip; index = next; }