From 09d6294dc2fd8f461f0dbf5271374b0cb4b14298 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 May 2015 17:58:17 +0200 Subject: [PATCH] menu_list_get_entry - fix bug --- menu/menu_list.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/menu/menu_list.c b/menu/menu_list.c index 8ed05f318e..29e49034f3 100644 --- a/menu/menu_list.c +++ b/menu/menu_list.c @@ -480,6 +480,8 @@ void menu_list_get_entry(menu_entry_t *entry, size_t i, void *userdata, entry->id = i; + if (path) + strlcpy(entry->path, path, sizeof(entry->path)); if (entry_label) strlcpy(entry->label, entry_label, sizeof(entry->label)); }