1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Corrects arithmetic on raw data blocks.

This commit is contained in:
Thomas Harte 2019-03-02 14:40:48 -05:00
parent ddce4fb46b
commit 84d7157dfb

View File

@ -114,8 +114,8 @@ CAS::CAS(const std::string &file_name) {
file.seek(header_position + 8, SEEK_SET);
const uint16_t length = file.get16le();
file.seek(header_position, SEEK_SET);
chunks_.emplace_back(false, false, file.read(size_t(length) + 2 + 8));
file.seek(header_position + 8, SEEK_SET);
chunks_.emplace_back(false, false, file.read(size_t(length) + 2));
}
} break;