We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7948954 commit d024beaCopy full SHA for d024bea
cores/esp32/WString.cpp
@@ -242,7 +242,7 @@ void String::move(String &rhs) {
242
// Use case: When 'reserve()' was called and the first
243
// assignment/append is the return value of a function.
244
if (rhs.len() && rhs.buffer()) {
245
- memmove(wbuffer(), rhs.buffer(), rhs.length() + 1);
+ memmove(wbuffer(), rhs.buffer(), rhs.length());
246
}
247
setLen(rhs.len());
248
rhs.invalidate();
0 commit comments