diff --git a/CMakeLists.txt b/CMakeLists.txt index cc07fd1..8fbc9ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 5.2.33) +set(BLT_VERSION 5.2.34) set(BLT_TARGET BLT) diff --git a/src/blt/logging/logging.cpp b/src/blt/logging/logging.cpp index a2f2d68..4bc5cb2 100644 --- a/src/blt/logging/logging.cpp +++ b/src/blt/logging/logging.cpp @@ -215,7 +215,7 @@ namespace blt::logging std::optional> logger_t::consume_to_next_fmt() { auto begin = m_fmt.find('{', m_last_fmt_pos); - while (begin > 0 && m_fmt[begin - 1] == '\\') + while (begin != std::string::npos && begin > 0 && m_fmt[begin - 1] == '\\') begin = m_fmt.find('{', begin + 1);; if (begin == std::string::npos) return {};