From e9afd533517547bc0e596ea2bf72da2523565aec Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Tue, 21 Jan 2025 03:50:46 +0100 Subject: [PATCH] Fix crash that can happen in menu_action_setting_disp_set_label_entry --- menu/cbs/menu_cbs_get_value.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menu/cbs/menu_cbs_get_value.c b/menu/cbs/menu_cbs_get_value.c index 2af7390dd9e..8e308c886bb 100644 --- a/menu/cbs/menu_cbs_get_value.c +++ b/menu/cbs/menu_cbs_get_value.c @@ -1056,7 +1056,8 @@ static void menu_action_setting_disp_set_label_entry( { *s = '\0'; *w = 8; - strlcpy(s2, path, len2); + if (!string_is_empty(path)) + strlcpy(s2, path, len2); } #ifdef HAVE_BLUETOOTH