From f1ee54bc37bf48ab3dfe399ee5e13bc8ccc51c3f Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Thu, 7 Dec 2023 11:38:46 -0800 Subject: [PATCH] Update Util.h --- src/Util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util.h b/src/Util.h index 98808955cbcc..15c297796911 100644 --- a/src/Util.h +++ b/src/Util.h @@ -191,7 +191,7 @@ template std::string join_strings(const std::vector &sources, const std::string &delim) { size_t sz = 0; if (!sources.empty()) { - delim.size() * (sources.size() - 1); + sz += delim.size() * (sources.size() - 1); } for (const auto &s : sources) { sz += s.size();