summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/i8275.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/i8275.cpp')
-rw-r--r--src/devices/video/i8275.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/video/i8275.cpp b/src/devices/video/i8275.cpp
index 99081d83d59..a232776fb05 100644
--- a/src/devices/video/i8275.cpp
+++ b/src/devices/video/i8275.cpp
@@ -585,7 +585,8 @@ WRITE8_MEMBER( i8275_device::dack_w )
else
{
assert(m_buffer_idx >= 0 && m_buffer_idx < ARRAY_LENGTH(m_buffer[m_buffer_dma]));
- m_buffer[m_buffer_dma][m_buffer_idx++] = data;
+ if (m_buffer_idx < ARRAY_LENGTH(m_buffer[m_buffer_dma]))
+ m_buffer[m_buffer_dma][m_buffer_idx++] = data;
if (!VISIBLE_FIELD_ATTRIBUTE && ((data & 0xc0) == 0x80))
{