mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Fix regression #14229 - NULL termination for strings still necessary
when passed to string_list_join_concat
This commit is contained in:
parent
9f218f923c
commit
ba752b6364
@ -76,6 +76,7 @@ static int menu_action_sublabel_file_browser_core(file_list_t *list, unsigned ty
|
||||
core_info->licenses_list)
|
||||
{
|
||||
char tmp[MENU_SUBLABEL_MAX_LENGTH];
|
||||
tmp[0] = '\0';
|
||||
/* Add license text */
|
||||
string_list_join_concat(tmp, sizeof(tmp),
|
||||
core_info->licenses_list, ", ");
|
||||
@ -1833,6 +1834,7 @@ static int action_bind_sublabel_core_updater_entry(
|
||||
entry->licenses_list)
|
||||
{
|
||||
char tmp[MENU_SUBLABEL_MAX_LENGTH];
|
||||
tmp[0] = '\0';
|
||||
/* Add license text */
|
||||
string_list_join_concat(tmp, sizeof(tmp),
|
||||
entry->licenses_list, ", ");
|
||||
|
@ -131,6 +131,7 @@ static void contentless_cores_init_info_entries(
|
||||
if (core_info->licenses_list)
|
||||
{
|
||||
char tmp_str[MENU_SUBLABEL_MAX_LENGTH - 2];
|
||||
tmp_str[0] = '\0';
|
||||
string_list_join_concat(tmp_str, sizeof(tmp_str),
|
||||
core_info->licenses_list, ", ");
|
||||
snprintf(licenses_str, sizeof(licenses_str), "%s: %s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user