summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-14 19:18:14 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-14 19:18:14 +0000
commitc0791013d7374105a7697bd28a23f0e41e1c4d0e (patch)
treeec4f4cdca9b5d0b61d067d749d4fe7cd6b3f2ca0
parent818800e9a2cbfb7d57965f64b2f853fc4bf8b291 (diff)
parentde5fdd67730def6d3002ae56b27bb349e2ad4d24 (diff)
downloadsystem_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.cpp2
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;
}