ircd::stringops: Fix string to string replacement error.

This commit is contained in:
Jason Volk 2022-07-14 17:21:38 -07:00
parent 4e29b2429c
commit 6ef8bf28ef
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ ircd::replace(const mutable_buffer &out_,
consumed += consume(out, after_copied);
produced += size(after);
in = in.substr(p + size(after));
in = in.substr(p + size(before));
p = in.find(before);
}
else break;