summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2021-02-16 21:54:36 +0100
committer Olivier Galibert <galibert@pobox.com>2021-02-16 21:55:12 +0100
commita4489dcdb44ebf2b1654e7f6641fe17c029c1793 (patch)
treeda7e5e5e8003e705f506899cde1cf9268ea0619d
parent48eafb68c4b89dfc03ee2e29d45dd8f27b550415 (diff)
woz: Correct trks chunk size
-rw-r--r--src/lib/formats/ap2_dsk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/ap2_dsk.cpp b/src/lib/formats/ap2_dsk.cpp
index 082c263c569..f79221cfc51 100644
--- a/src/lib/formats/ap2_dsk.cpp
+++ b/src/lib/formats/ap2_dsk.cpp
@@ -1796,7 +1796,7 @@ bool a2_woz_format::save(io_generic *io, const std::vector<uint32_t> &variants,
data[88 + i] = tracks[i].empty() ? 0xff : tcount++;
w32(data, 248, 0x534B5254); // TRKS
- w32(data, 252, 8*tcount); // size
+ w32(data, 252, 1280 + total_blocks*512); // size
uint8_t tid = 0;
uint16_t tb = 3;