From 06c3cd80aad81e4781065437d53ca1e5315feb30 Mon Sep 17 00:00:00 2001 From: Bobby Smith <33353403+bslenul@users.noreply.github.com> Date: Fri, 13 Jan 2023 04:48:02 +0100 Subject: [PATCH] Fix subsystems sublabels (#14843) --- intl/msg_hash_us.h | 2 +- menu/cbs/menu_cbs_sublabel.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index ea9dd9837a..a806e4ab70 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -11939,7 +11939,7 @@ MSG_HASH( ) MSG_HASH( MENU_ENUM_LABEL_VALUE_SUBSYSTEM_CONTENT_INFO, - " Current Content: %s" + "Current Content: %s" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_NO_NETPLAY_HOSTS_FOUND, diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index 750b821ed4..1318337a6d 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -1381,9 +1381,10 @@ static int action_bind_sublabel_subsystem_load( unsigned j = 0; char buf[4096]; + buf[0] = '\0'; + for (j = 0; j < content_get_subsystem_rom_id(); j++) { - strlcat(buf, " ", sizeof(buf)); strlcat(buf, path_basename(content_get_subsystem_rom(j)), sizeof(buf)); if (j != content_get_subsystem_rom_id() - 1) strlcat(buf, "\n", sizeof(buf));