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.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/emu/ioport.cpp b/src/emu/ioport.cpp
index 2ee04f28072..3b408d808d2 100644
--- a/src/emu/ioport.cpp
+++ b/src/emu/ioport.cpp
@@ -841,12 +841,7 @@ std::string ioport_field::key_name(int which) const
// if that doesn't work, convert to UTF-8
if (ch > 0x7F || isprint(ch))
- {
- char buf[10];
- int count = utf8_from_uchar(buf, ARRAY_LENGTH(buf), ch);
- buf[count] = 0;
- return std::string(buf);
- }
+ return utf8_from_uchar(ch);
// otherwise, opt for question marks
return "???";