Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 105ddef5 authored by Andreas Gampe's avatar Andreas Gampe Committed by Brin Taylor
Browse files

System/core: Use memmove

Should use memmove when you expect overlap.

Change-Id: I268a173db40a4be54232958e37aa8a03c2a885ee
(cherry picked from commit 01e3a952)
parent ad7287d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }