summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/debug/dvstate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/debug/dvstate.cpp b/src/emu/debug/dvstate.cpp
index 50e8c1610c4..931ae51111b 100644
--- a/src/emu/debug/dvstate.cpp
+++ b/src/emu/debug/dvstate.cpp
@@ -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