Prevent certain register values from being formatted with invalid characters added in debugger state views (e.g. upd7810)

This commit is contained in:
AJR 2020-12-14 21:54:51 -05:00
parent 4f1f24ee87
commit 0f1b32c3b3

View File

@ -255,6 +255,9 @@ void debug_view_state::view_update()
default:
curitem.update(source.m_stateintf->state_int(curitem.index()), cycles_changed);
valstr = source.m_stateintf->state_string(curitem.index());
// state_string may not always provide the maximum number of characters with some formats
valstr.resize(curitem.value_length(), ' ');
break;
}
// if this row is visible, add it to the buffer