summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/romload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/romload.c')
-rw-r--r--src/emu/romload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/romload.c b/src/emu/romload.c
index fa99559ca9a..5dd7c641ab9 100644
--- a/src/emu/romload.c
+++ b/src/emu/romload.c
@@ -800,7 +800,7 @@ static int read_rom_data(romload_private *romdata, const rom_entry *parent_regio
{
int evengroupcount = (tempbufsize / groupsize) * groupsize;
int bytesleft = (numbytes > evengroupcount) ? evengroupcount : numbytes;
- UINT8 *bufptr = tempbuf;
+ UINT8 *bufptr = &tempbuf[0];
/* read as much as we can */
LOG((" Reading %X bytes into buffer\n", bytesleft));