From 9c25fbe8fdcea7cac7ff2c7e9f8be47f4130b805 Mon Sep 17 00:00:00 2001 From: Syed Faaiz Hussain Date: Mon, 7 Oct 2024 09:12:56 -0700 Subject: [PATCH] get rid of condition again --- src/printf.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/printf.cpp b/src/printf.cpp index bc6161b8..619e8644 100644 --- a/src/printf.cpp +++ b/src/printf.cpp @@ -226,11 +226,8 @@ void process_printf(char*& data, const printf_descriptor_map_t& descs, // Special case for %s if (get_fmt_conversion(part_fmt) == 's') { uint32_t string_id = read_buff(data); - if (string_id < descs.size()) { - printf_out << print_part( - part_fmt, descs.at(string_id).format_string.c_str(), - size); - } + printf_out << print_part( + part_fmt, descs.at(string_id).format_string.c_str(), size); } else { printf_out << print_part(part_fmt, data, size); }