diff options
author | 2019-07-18 21:01:32 -0400 | |
---|---|---|
committer | 2019-07-18 21:01:32 -0400 | |
commit | 8a2b84d598f9e22aaa1ed588553dfe0a9c360e67 (patch) | |
tree | 2ca8d3f1793be8dfa447e4c4e4f227e820aa6ed0 /src | |
parent | 63bda946e27d132ac949ebd23f4f22f5f30d78ea (diff) |
poly88: Be safe when loading snapshots (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/mame/machine/poly88.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/machine/poly88.cpp b/src/mame/machine/poly88.cpp index f9799d2c6a8..d922cdd5a1e 100644 --- a/src/mame/machine/poly88.cpp +++ b/src/mame/machine/poly88.cpp @@ -239,7 +239,8 @@ SNAPSHOT_LOAD_MEMBER(poly88_state::snapshot_cb) switch(recordType) { case 0 : /* 00 Absolute */ - memcpy(space.get_read_ptr(address ), data + pos ,recordLen); + for (uint16_t j = 0; j < recordLen; j++) + space.write_byte(address + j, data[pos + j]); break; case 1 : /* 01 Comment */ |