mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Another file read issue
This commit is contained in:
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
Submodule lib/external/pattern_language updated: 24612218e4...eeac9a265b
@@ -80,7 +80,7 @@ namespace hex::fs {
|
||||
return "";
|
||||
|
||||
const char *cString = reinterpret_cast<const char *>(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) {
|
||||
|
||||
Reference in New Issue
Block a user