Remap label fix when no autoconf profile active (#15631)

This commit is contained in:
sonninnos 2023-08-22 03:05:04 +03:00 committed by GitHub
parent 12136ad516
commit dec6c0ca31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));