Skip to content

Commit c7533e3

Browse files
committed
UPD | docs: routers #4
1 parent 31ebb4a commit c7533e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ManapiString.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ ssize_t manapi::string::replace(std::string &s, std::string_view from, std::stri
170170

171171
s.resize(s.size() + shift);
172172

173-
memmove(s.data() + it + shift, s.data() + it, s.size() - it);
173+
memmove(s.data() + it + shift, s.data() + it, s.size() - it - shift);
174174
memcpy(s.data() + it, to.data(), to.size());
175175

176176
res++;

0 commit comments

Comments
 (0)