diff options
Diffstat (limited to 'src/emu/cpu/drcuml.c')
-rw-r--r-- | src/emu/cpu/drcuml.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/drcuml.c b/src/emu/cpu/drcuml.c index e6596f3c9bd..ca52ee34e3e 100644 --- a/src/emu/cpu/drcuml.c +++ b/src/emu/cpu/drcuml.c @@ -253,7 +253,7 @@ const char *drcuml_state::symbol_find(void *base, UINT32 *offset) // return the offset and name if (offset != NULL) *offset = search - cursym->m_base; - return cursym->m_name; + return cursym->m_name.c_str(); } // not found; return NULL @@ -396,7 +396,7 @@ void drcuml_block::append_comment(const char *format, ...) char *comment = (char *)m_drcuml.cache().alloc_temporary(temp.len() + 1); if (comment == NULL) return; - strcpy(comment, temp); + strcpy(comment, temp.c_str()); // add an instruction with a pointer append().comment(comment); @@ -524,11 +524,11 @@ const char *drcuml_block::get_comment_text(const instruction &inst, astring &com { // comments return their strings if (inst.opcode() == OP_COMMENT) - return comment.cpy(inst.param(0).string()); + return comment.cpy(inst.param(0).string()).c_str(); // mapvars comment about their values else if (inst.opcode() == OP_MAPVAR) - return comment.format("m%d = $%X", (int)inst.param(0).mapvar() - MAPVAR_M0, (UINT32)inst.param(1).immediate()); + return comment.format("m%d = $%X", (int)inst.param(0).mapvar() - MAPVAR_M0, (UINT32)inst.param(1).immediate()).c_str(); // everything else is NULL return NULL; |