Skip to content

Commit

Permalink
Fix crash that can happen in menu_action_setting_disp_set_label_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jan 21, 2025
1 parent f84f829 commit e9afd53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion menu/cbs/menu_cbs_get_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9afd53

Please sign in to comment.