summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/serflash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/serflash.c')
-rw-r--r--src/emu/machine/serflash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/serflash.c b/src/emu/machine/serflash.c
index f4014da10c2..8ea9a4445ea 100644
--- a/src/emu/machine/serflash.c
+++ b/src/emu/machine/serflash.c
@@ -37,8 +37,8 @@ void serflash_device::device_start()
m_length = machine().root_device().memregion( tag() )->bytes();
m_region = machine().root_device().memregion( tag() )->base();
- m_flashwritemap.resize_and_clear(m_length / FLASH_PAGE_SIZE);
-
+ m_flashwritemap.resize(m_length / FLASH_PAGE_SIZE);
+ memset(&m_flashwritemap[0], 0, m_length / FLASH_PAGE_SIZE);
}
void serflash_device::device_reset()