From 19f280466195f347f3f2c474556a6be0b343a7fb Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 8 Jul 2020 18:50:51 +0300 Subject: [PATCH] Fix #1611 --- include/spdlog/fmt/bin_to_hex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h index e974cf51..5393dcac 100644 --- a/include/spdlog/fmt/bin_to_hex.h +++ b/include/spdlog/fmt/bin_to_hex.h @@ -92,7 +92,7 @@ struct formatter> auto parse(ParseContext &ctx) -> decltype(ctx.begin()) { auto it = ctx.begin(); - while (*it && *it != '}') + while (it != ctx.end() && *it != '}') { switch (*it) {