diff options
author | Fabrice Bellet <fabrice@bellet.info> | 2014-12-02 23:12:44 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2014-12-18 08:27:14 +0100 |
commit | 146393cf11b20dc8bf11c3eb5746b6ecd5ce4675 (patch) | |
tree | ecb0c34b4da8e1d1173aec551a105fd87b3a80a3 | |
parent | 1417b6be30fed2e577530ff331a05ea5fc69cb05 (diff) |
debug: fix a string overflow in comments
-rw-r--r-- | src/emu/debug/dvdisasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/debug/dvdisasm.c b/src/emu/debug/dvdisasm.c index cba167a2160..3630ba28f07 100644 --- a/src/emu/debug/dvdisasm.c +++ b/src/emu/debug/dvdisasm.c @@ -420,7 +420,7 @@ bool debug_view_disasm::recompute(offs_t pc, int startline, int lines) offs_t comment_address = source.m_space.byte_to_address(m_byteaddress[instr]); const char *text = source.m_device.debug()->comment_text(comment_address); if (text != NULL) - sprintf(&destbuf[m_divider2], "// %.*s", row_width - m_divider2 - 1, text); + sprintf(&destbuf[m_divider2], "// %.*s", row_width - m_divider2 - 4, text); } // see if the line changed at all |