fixed buffer overflow in src/mess/machine/intv.c detected by AddressSanitizer (nw)

This commit is contained in:
Oliver Stöneberg 2013-07-19 21:41:13 +00:00
parent f84fff614e
commit d1c0719ac1

View File

@ -690,7 +690,7 @@ void intv_state::machine_start()
{
for (int i = 0; i < 10; i++)
{
char str[4];
char str[5];
sprintf(str, "ROW%i", i);
m_intv_keyboard[i] = ioport(str);
}