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/devices/cpu/sh2/sh2dasm.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/devices/cpu/sh2/sh2dasm.cpp') diff --git a/src/devices/cpu/sh2/sh2dasm.cpp b/src/devices/cpu/sh2/sh2dasm.cpp index a484c2a9cb4..ef823ee28a5 100644 --- a/src/devices/cpu/sh2/sh2dasm.cpp +++ b/src/devices/cpu/sh2/sh2dasm.cpp @@ -606,9 +606,5 @@ unsigned DasmSH2(std::ostream &stream, unsigned pc, uint16_t opcode) CPU_DISASSEMBLE(sh2) { - std::ostringstream stream; - offs_t result = DasmSH2(stream, pc, (oprom[0] << 8) | oprom[1]); - std::string stream_str = stream.str(); - strcpy(buffer, stream_str.c_str()); - return result; + return DasmSH2(stream, pc, (oprom[0] << 8) | oprom[1]); } -- cgit v1.2.3-70-g09d2