summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/info.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2010-06-24 15:10:53 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2010-06-24 15:10:53 +0000
commite3a90fa281f3cc7d1f6a02c3a438bed129e8d4ae (patch)
treefb10a6eeb6754f6f4008bcaee2949bef26afa7eb /src/emu/info.c
parentc81aa1bbdd3bc0bb9f8bfbcffc8d73b70a8bc6d7 (diff)
Implemented hash file and battery support and did some cleanup (no whatsnew)
Diffstat (limited to 'src/emu/info.c')
-rw-r--r--src/emu/info.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/info.c b/src/emu/info.c
index e9c4e6add0a..7ef0b71e9a1 100644
--- a/src/emu/info.c
+++ b/src/emu/info.c
@@ -905,7 +905,9 @@ static void print_game_images(FILE *out, const game_driver *game, const machine_
fprintf(out, " briefname=\"%s\"", xml_normalize_string(shortname));
fprintf(out, "/>\n");
- char *ext = strtok((char*)dev->file_extensions(),",");
+ astring extensions(dev->file_extensions());
+
+ char *ext = strtok((char*)extensions.cstr(),",");
while (ext != NULL)
{
fprintf(out, "\t\t\t<extension");