fixed heap-buffer-overflow in msx_state::device_image_load_msx_cart() (nw)

This commit is contained in:
Oliver Stöneberg 2014-03-30 13:13:06 +00:00
parent 10b0a1792b
commit 70d5afa279

View File

@ -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)
{