summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-07-18 21:01:32 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-07-18 21:01:32 -0400
commit8a2b84d598f9e22aaa1ed588553dfe0a9c360e67 (patch)
tree2ca8d3f1793be8dfa447e4c4e4f227e820aa6ed0 /src
parent63bda946e27d132ac949ebd23f4f22f5f30d78ea (diff)
poly88: Be safe when loading snapshots (nw)
Diffstat (limited to 'src')
-rw-r--r--src/mame/machine/poly88.cpp3
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 */