diff options
| author | Andreas Gampe <agampe@google.com> | 2014-11-14 00:28:02 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-14 00:28:03 +0000 |
| commit | 6ef68b55b77b199fdcef2822750a392e1d0a4b04 (patch) | |
| tree | 7bd2b229c19f35ddc2200e6d19a8abb7bbfe317c | |
| parent | 64d7117efc7f7b8b477cd216a119b07041d8f406 (diff) | |
| parent | dd060f01f68ee0e633e9cae24c4e565cda2032bd (diff) | |
| download | system_core-6ef68b55b77b199fdcef2822750a392e1d0a4b04.tar.gz system_core-6ef68b55b77b199fdcef2822750a392e1d0a4b04.tar.bz2 system_core-6ef68b55b77b199fdcef2822750a392e1d0a4b04.zip | |
Merge "System/core: Use memmove"
| -rw-r--r-- | libutils/String8.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libutils/String8.cpp b/libutils/String8.cpp index 9092cbc99..3323b82a5 100644 --- a/libutils/String8.cpp +++ b/libutils/String8.cpp @@ -424,7 +424,7 @@ bool String8::removeAll(const char* other) { 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; } |
