From 1ae8c5a80945e4e8d549e0bd763ad1fd132e888e Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 28 Jan 2013 02:48:01 +0200 Subject: [PATCH] frontend: path handling fix --- frontend/menu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/menu.c b/frontend/menu.c index 3a6ae9c5..9ca5f95e 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -251,7 +251,9 @@ static int optional_cdimg_filter(struct dirent **namelist, int count, p = strrchr(buf2, '/'); if (p == NULL) p = strrchr(buf2, '\\'); - if (p == NULL) + if (p != NULL) + p++; + else p = buf2; snprintf(buf, sizeof(buf), "%s/%s", basedir, p); -- 2.39.5