summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ioport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ioport.cpp')
-rw-r--r--src/emu/ioport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/ioport.cpp b/src/emu/ioport.cpp
index 0ea6dd59d59..fbc3bfe7fbc 100644
--- a/src/emu/ioport.cpp
+++ b/src/emu/ioport.cpp
@@ -3060,7 +3060,7 @@ ioport_configurer& ioport_configurer::port_modify(const char *tag)
// find the existing port
m_curport = m_portlist.find(fulltag)->second.get();
if (m_curport == nullptr)
- throw emu_fatalerror("Requested to modify nonexistent port '%s'", fulltag.c_str());
+ throw emu_fatalerror("Requested to modify nonexistent port '%s'", fulltag);
// bump the modification count, and reset current field/setting
m_curport->m_modcount++;
@@ -3114,7 +3114,7 @@ ioport_configurer& ioport_configurer::field_add_char(std::initializer_list<char3
util::stream_format(s, "%s%d", is_first ? "" : ",", (int)ch);
is_first = false;
}
- throw emu_fatalerror("PORT_CHAR(%s) could not be added - maximum amount exceeded\n", s.str().c_str());
+ throw emu_fatalerror("PORT_CHAR(%s) could not be added - maximum amount exceeded\n", s.str());
}