aboutsummaryrefslogtreecommitdiffstats
path: root/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'devices.c')
-rw-r--r--devices.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/devices.c b/devices.c
index 03316c7..7d76580 100644
--- a/devices.c
+++ b/devices.c
@@ -121,6 +121,11 @@ void devices_parse_info_block(struct qemu_window *win, char *str)
ptr = strchr(file, ' ');
if (ptr)
*ptr = 0;
+#if 1 /* basename */
+ ptr = strrchr(file, '/');
+ if (ptr)
+ file = ptr+1;
+#endif
eject = 1;
} else {
file = "<empty>";