mirror of
https://github.com/TomHarte/CLK.git
synced 2025-11-25 04:18:05 +00:00
Distinguish when to include the trailing NULL.
This commit is contained in:
@@ -37,7 +37,7 @@ std::unique_ptr<Analyser::Static::Target> SZX::load(const std::string &file_name
|
||||
result->state = std::unique_ptr<Reflection::Struct>(state);
|
||||
|
||||
// Check signature and major version number.
|
||||
if(!file.check_signature("ZXST")) {
|
||||
if(!file.check_signature<SignatureType::String>("ZXST")) {
|
||||
return nullptr;
|
||||
}
|
||||
const uint8_t major_version = file.get();
|
||||
|
||||
Reference in New Issue
Block a user