diff --git a/src/mess/machine/msx.c b/src/mess/machine/msx.c index b80ff21b78d..222d20627c2 100644 --- a/src/mess/machine/msx.c +++ b/src/mess/machine/msx.c @@ -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) {