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++;