summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/fd1089.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/fd1089.c')
-rw-r--r--src/mame/machine/fd1089.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/machine/fd1089.c b/src/mame/machine/fd1089.c
index 18549d13d65..a9c7cf0465e 100644
--- a/src/mame/machine/fd1089.c
+++ b/src/mame/machine/fd1089.c
@@ -258,15 +258,15 @@ void fd1089_base_device::device_start()
m_decrypted_opcodes.resize(romsize/2);
// copy the plaintext
- memcpy(m_plaintext, rombase, romsize);
+ memcpy(&m_plaintext[0], rombase, romsize);
// decrypt it, overwriting original data with the decrypted data
- decrypt(0x000000, romsize, m_plaintext, m_decrypted_opcodes, rombase);
+ decrypt(0x000000, romsize, &m_plaintext[0], &m_decrypted_opcodes[0], rombase);
// mark the ROM region as decrypted, pointing to the opcodes (if it is mapped)
address_space &program = space(AS_PROGRAM);
if (program.get_read_ptr(0) != NULL)
- program.set_decrypted_region(0x000000, romsize - 1, m_decrypted_opcodes);
+ program.set_decrypted_region(0x000000, romsize - 1, &m_decrypted_opcodes[0]);
}