summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2014-05-13 17:07:17 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2014-05-13 17:07:17 +0000
commita5e97e71ac7140fcb7de9f1b6c04fc69ef678d8a (patch)
treec8dd8144bfae25ab7c4e2f481b25feafeb07c88a /src
parent55bf85dc99639edb974414be564480babc1a9a4f (diff)
sega8_slot: fixed terebioe (and some other games) trying to load more bytes than available. nw.
Diffstat (limited to 'src')
-rw-r--r--src/emu/bus/sega8/sega8_slot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/bus/sega8/sega8_slot.c b/src/emu/bus/sega8/sega8_slot.c
index ec09c6d7147..5bc1f08e39e 100644
--- a/src/emu/bus/sega8/sega8_slot.c
+++ b/src/emu/bus/sega8/sega8_slot.c
@@ -369,7 +369,7 @@ bool sega8_cart_slot_device::call_load()
fread(ROM, len);
}
else
- memcpy(ROM, get_software_region("rom") + offset, len);
+ memcpy(ROM, get_software_region("rom"), get_software_region_length("rom"));
/* check the image */
if (verify_cart(ROM, len) == IMAGE_VERIFY_FAIL)