From dec6c0ca31370fb4d96fd568c5be47b86b3ea424 Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Tue, 22 Aug 2023 03:05:04 +0300 Subject: [PATCH] Remap label fix when no autoconf profile active (#15631) --- menu/menu_displaylist.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 2fc439a78d..615ccab028 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -11572,7 +11572,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, size_t _len = strlcpy(desc_label, msg_hash_to_str(keyptr->enum_idx), sizeof(desc_label)); - desc_label[ _len] = ' '; + desc_label[ _len] = ','; + desc_label[++_len] = ' '; desc_label[++_len] = '\0'; strlcpy(desc_label + _len, descriptor, sizeof(desc_label) - _len); strlcpy(descriptor, desc_label, sizeof(descriptor)); @@ -11624,7 +11625,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, size_t _len = strlcpy(desc_label, msg_hash_to_str(keyptr->enum_idx), sizeof(desc_label)); - desc_label[ _len] = ' '; + desc_label[ _len] = ','; + desc_label[++_len] = ' '; desc_label[++_len] = '\0'; strlcpy(desc_label + _len, descriptor, sizeof(desc_label) - _len); strlcpy(descriptor, desc_label, sizeof(descriptor));