summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/barcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ui/barcode.c')
-rw-r--r--src/emu/ui/barcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/ui/barcode.c b/src/emu/ui/barcode.c
index 3b9f429c8db..4cba5554499 100644
--- a/src/emu/ui/barcode.c
+++ b/src/emu/ui/barcode.c
@@ -118,7 +118,7 @@ void ui_menu_barcode_reader::handle()
machine().ui().popup_time(5, "Barcode length invalid!");
else
{
- current_device()->write_code(tmp_file.cstr(), tmp_file.len());
+ current_device()->write_code(tmp_file.c_str(), tmp_file.len());
// if sending was successful, reset char buffer
if (m_barcode_buffer[0] != '\0')
memset(m_barcode_buffer, '\0', ARRAY_LENGTH(m_barcode_buffer));