From 5b26a852e6f968d86dec7382c8e00441d7487864 Mon Sep 17 00:00:00 2001 From: mikee47 Date: Fri, 4 Feb 2022 13:54:52 +0000 Subject: [PATCH] String::remove() should use memmove --- Sming/Wiring/WString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sming/Wiring/WString.cpp b/Sming/Wiring/WString.cpp index 4975d78efb..f7fa4ad78b 100644 --- a/Sming/Wiring/WString.cpp +++ b/Sming/Wiring/WString.cpp @@ -909,7 +909,7 @@ void String::remove(size_t index, size_t count) } char* writeTo = buffer() + index; len -= count; - memcpy(writeTo, writeTo + count, len - index); + memmove(writeTo, writeTo + count, len - index); setlen(len); }