From 58d0aaa1c4cde71ab8ff00b2ed858592de4b09cd Mon Sep 17 00:00:00 2001 From: kraxel Date: Tue, 30 Sep 2008 15:49:00 +0000 Subject: - use basename for images --- devices.c | 5 +++++ 1 file changed, 5 insertions(+) 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 = ""; -- cgit