diff --git a/lib/external/pattern_language b/lib/external/pattern_language index 24612218e..eeac9a265 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit 24612218e4d4f085c82cbbbaa6a25a5a9bcc7ec7 +Subproject commit eeac9a265b99ed91880126282f0c8d70e80c9de1 diff --git a/lib/libimhex/source/helpers/file.cpp b/lib/libimhex/source/helpers/file.cpp index 890210287..cdd89b927 100644 --- a/lib/libimhex/source/helpers/file.cpp +++ b/lib/libimhex/source/helpers/file.cpp @@ -80,7 +80,7 @@ namespace hex::fs { return ""; const char *cString = reinterpret_cast(bytes.data()); - return { cString, std::strlen(cString) }; + return { cString, std::min(bytes.size(), std::strlen(cString)) }; } void File::write(const u8 *buffer, size_t size) {