Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0e55f77

Browse filesBrowse files
committed
Fixing issue in String::remove
1 parent 22a488c commit 0e55f77
Copy full SHA for 0e55f77

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎cores/esp32/WString.cpp

Copy file name to clipboardExpand all lines: cores/esp32/WString.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,8 @@ void String::remove(unsigned int index, unsigned int count) {
796796
}
797797
char *writeTo = wbuffer() + index;
798798
unsigned int newlen = len() - count;
799-
setLen(newlen);
800799
memmove(writeTo, wbuffer() + index + count, newlen - index);
800+
setLen(newlen);
801801
wbuffer()[newlen] = 0;
802802
}
803803

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.