From 8d3e89cc7e4d9f02eb99121fe0412cb732b9c432 Mon Sep 17 00:00:00 2001 From: Timo Strunk Date: Fri, 12 Sep 2014 17:49:31 +0200 Subject: [PATCH] Use pathname_short representation in menu_entries.c to allow for correct viewing of compressed paths in history list --- frontend/menu/menu_entries.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/menu/menu_entries.c b/frontend/menu/menu_entries.c index 408d6c4db6..5cd3ebe8f4 100644 --- a/frontend/menu/menu_entries.c +++ b/frontend/menu/menu_entries.c @@ -272,11 +272,9 @@ int menu_entries_push_list(menu_handle_t *menu, if (path) { char path_short[PATH_MAX]; - fill_pathname(path_short, path_basename(path), "", - sizeof(path_short)); - - snprintf(fill_buf, sizeof(fill_buf), "%s (%s)", - path_short, core_name); + fill_short_pathname_representation(path_short,path,sizeof(path_short)); + snprintf(fill_buf,sizeof(fill_buf),"%s (%s)", + path_short,core_name); } file_list_push(list, fill_buf, "",