summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/spchrom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/spchrom.cpp')
-rw-r--r--src/devices/machine/spchrom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/spchrom.cpp b/src/devices/machine/spchrom.cpp
index 542be5b4ded..dab4f65e7a9 100644
--- a/src/devices/machine/spchrom.cpp
+++ b/src/devices/machine/spchrom.cpp
@@ -25,7 +25,7 @@
// device type definition
const device_type SPEECHROM = &device_creator<speechrom_device>;
-speechrom_device::speechrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+speechrom_device::speechrom_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SPEECHROM, "SPEECHROM", tag, owner, clock, "speechrom", __FILE__), m_speechrom_data(nullptr), m_speechROMlen(0),
m_speechROMaddr(0),
m_load_pointer(0),
@@ -127,7 +127,7 @@ void speechrom_device::device_start()
memory_region *region = memregion(tag());
if (region == nullptr)
{
- throw emu_fatalerror("No region for device '%s'\n", tag());
+ throw emu_fatalerror("No region for device '%s'\n", tag().c_str());
}
m_speechrom_data = region->base();