diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-14 19:18:14 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-14 19:18:14 +0000 |
commit | c0791013d7374105a7697bd28a23f0e41e1c4d0e (patch) | |
tree | ec4f4cdca9b5d0b61d067d749d4fe7cd6b3f2ca0 | |
parent | 818800e9a2cbfb7d57965f64b2f853fc4bf8b291 (diff) | |
parent | de5fdd67730def6d3002ae56b27bb349e2ad4d24 (diff) | |
download | system_core-c0791013d7374105a7697bd28a23f0e41e1c4d0e.zip system_core-c0791013d7374105a7697bd28a23f0e41e1c4d0e.tar.gz system_core-c0791013d7374105a7697bd28a23f0e41e1c4d0e.tar.bz2 |
am de5fdd67: am 6ef68b55: Merge "System/core: Use memmove"
* commit 'de5fdd67730def6d3002ae56b27bb349e2ad4d24':
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 9092cbc..3323b82 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; } |