From a29891d2e5b750e47a1237929c42fc2afdd8f094 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sun, 20 Nov 2016 08:49:30 -0500 Subject: Changed disassembler infrastructure to not use char buffers internally --- src/emu/debug/debugcmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/emu/debug/debugcmd.cpp') diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index b4d5197e702..58f0322b8cd 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -2405,7 +2405,7 @@ void debugger_commands::execute_dasm(int ref, int params, const char *param[]) for (u64 i = 0; i < length; ) { int pcbyte = space->address_to_byte(offset + i) & space->bytemask(); - char disasm[200]; + std::string disasm; const char *comment; offs_t tempaddr; int numbytes = 0; @@ -2604,10 +2604,10 @@ void debugger_commands::execute_history(int ref, int params, const char *param[] argbuf[numbytes] = m_cpu.read_opcode(*space, pcbyte + numbytes, 1); } - char buffer[200]; + std::string buffer; dasmintf->disassemble(buffer, pc, opbuf, argbuf); - m_console.printf("%0*X: %s\n", space->logaddrchars(), pc, buffer); + m_console.printf("%0*X: %s\n", space->logaddrchars(), pc, buffer.c_str()); } } -- cgit v1.2.3