fixed heap-buffer-overflow in msx_state::device_image_load_msx_cart() (nw)
This commit is contained in:
parent
10b0a1792b
commit
70d5afa279
@ -308,7 +308,7 @@ DEVICE_IMAGE_LOAD_MEMBER(msx_state,msx_cart)
|
||||
memset (st, 0, sizeof (slot_state));
|
||||
|
||||
st->m_type = type;
|
||||
sramfile = auto_alloc_array(machine(), char, strlen (image.filename () + 1));
|
||||
sramfile = auto_alloc_array(machine(), char, strlen (image.filename ()) + 1);
|
||||
|
||||
if (sramfile)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user