From 6ef8bf28ef20e4a77df0a7a572bd37263690a708 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 14 Jul 2022 17:21:38 -0700 Subject: [PATCH] ircd::stringops: Fix string to string replacement error. --- ircd/stringops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/stringops.cc b/ircd/stringops.cc index 90b169e36..305854cb0 100644 --- a/ircd/stringops.cc +++ b/ircd/stringops.cc @@ -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;