mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
fixed buffer overflow in src/mess/machine/intv.c detected by AddressSanitizer (nw)
This commit is contained in:
parent
f84fff614e
commit
d1c0719ac1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user