fixed array out-of-bounds access in nmk16_state::tharrier_mcu_r() (nw)

This commit is contained in:
Oliver Stöneberg 2013-07-29 09:25:34 +00:00
parent 5710c0585f
commit 8483fb834e

View File

@ -249,7 +249,7 @@ READ16_MEMBER(nmk16_state::tharrier_mcu_r)
else
{
res = to_main[m_prot_count++];
if (m_prot_count > sizeof(to_main))
if (m_prot_count == sizeof(to_main))
m_prot_count = 0;
}