From 4c34a471791b73f82d6dc020ecd3ffe3e2225cba Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 19 Mar 2026 01:19:24 +0300 Subject: [PATCH] Fix str_replace --- src/util/str_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/str_util.cpp b/src/util/str_util.cpp index 259e7900..320cee95 100644 --- a/src/util/str_util.cpp +++ b/src/util/str_util.cpp @@ -96,7 +96,7 @@ std::string str_replace(const std::string & in, const std::string & needle, cons { res += in.substr(pos, p2-pos); res += replacement; - pos = p2 + replacement.size(); + pos = p2 + needle.size(); } if (!pos) {