mirror of
https://github.com/red0124/ssp.git
synced 2025-02-02 16:51:12 +01:00
fix out of range copy_n within the splitter
This commit is contained in:
parent
b626f78a71
commit
6f2f4d9171
@ -201,7 +201,7 @@ private:
|
|||||||
void shift_and_set_current() {
|
void shift_and_set_current() {
|
||||||
if constexpr (!is_const_line) {
|
if constexpr (!is_const_line) {
|
||||||
if (escaped_ > 0) {
|
if (escaped_ > 0) {
|
||||||
std::copy_n(curr_ + escaped_, end_ - curr_, curr_);
|
std::copy_n(curr_ + escaped_, end_ - curr_ - escaped_, curr_);
|
||||||
curr_ = end_ - escaped_;
|
curr_ = end_ - escaped_;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user