System/core: Use memmove

Should use memmove when you expect overlap.

Change-Id: I268a173db40a4be54232958e37aa8a03c2a885ee
This commit is contained in:
Andreas Gampe 2014-11-13 15:50:17 -08:00
parent b0a10b53ee
commit dd060f01f6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}