From bda4aadc549e27d828ae4ff4caee05af730ab2e3 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 13 Sep 2022 14:10:52 +0200 Subject: [PATCH] fix: Sequence escape codes --- lib/libimhex/source/helpers/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libimhex/source/helpers/utils.cpp b/lib/libimhex/source/helpers/utils.cpp index e137466f3..0850d054c 100644 --- a/lib/libimhex/source/helpers/utils.cpp +++ b/lib/libimhex/source/helpers/utils.cpp @@ -339,7 +339,7 @@ namespace hex { auto c = [&] { return string[offset]; }; if (c() == '\\') { - if ((offset + 2) >= string.length()) return {}; + if ((offset + 2) > string.length()) return {}; offset++;