summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libutils/String8.cpp')
-rw-r--r--libutils/String8.cpp2
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) {
424 next = len; 424 next = len;
425 } 425 }
426 426
427 memcpy(buf + tail, buf + index + skip, next - index - skip); 427 memmove(buf + tail, buf + index + skip, next - index - skip);
428 tail += next - index - skip; 428 tail += next - index - skip;
429 index = next; 429 index = next;
430 } 430 }