summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/microtan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/microtan.cpp')
-rw-r--r--src/mame/machine/microtan.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/machine/microtan.cpp b/src/mame/machine/microtan.cpp
index fa68bcdecc3..b71982061f5 100644
--- a/src/mame/machine/microtan.cpp
+++ b/src/mame/machine/microtan.cpp
@@ -671,10 +671,10 @@ SNAPSHOT_LOAD_MEMBER(microtan_state::snapshot_cb)
if (!snapshot_buff)
return image_init_result::FAIL;
- if (verify_snapshot(snapshot_buff, snapshot_size) != image_verify_result::PASS)
+ if (verify_snapshot(snapshot_buff, image.length()) != image_verify_result::PASS)
return image_init_result::FAIL;
- snapshot_copy(snapshot_buff, snapshot_size);
+ snapshot_copy(snapshot_buff, image.length());
return image_init_result::PASS;
}
@@ -682,12 +682,12 @@ QUICKLOAD_LOAD_MEMBER(microtan_state::quickload_cb)
{
int snapshot_size = 8263; /* magic size */
std::vector<uint8_t> snapshot_buff(snapshot_size, 0);
- std::vector<char> buff(quickload_size + 1);
+ std::vector<char> buff(image.length() + 1);
image_init_result rc;
- image.fread(&buff[0], quickload_size);
+ image.fread(&buff[0], image.length());
- buff[quickload_size] = '\0';
+ buff[image.length()] = '\0';
if (buff[0] == ':')
rc = parse_intel_hex(&snapshot_buff[0], &buff[0]);