1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-23 15:40:35 +00:00

Merge pull request from yoshisuga/cheevos_fix_set_sublabel

(cheevos) Fix crash when setting sublabel of achievement
This commit is contained in:
Twinaphex 2019-09-17 00:26:42 +02:00 committed by GitHub
commit d526530167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -735,10 +735,13 @@ static int action_bind_sublabel_cheevos_entry(
char *s, size_t len)
{
#ifdef HAVE_CHEEVOS
char fetched_sublabel[MENU_SUBLABEL_MAX_LENGTH];
fetched_sublabel[0] = '\0';
rcheevos_ctx_desc_t desc_info;
unsigned new_id = type - MENU_SETTINGS_CHEEVOS_START;
desc_info.idx = new_id;
desc_info.s = s;
desc_info.s = fetched_sublabel;
desc_info.len = len;
rcheevos_get_description((rcheevos_ctx_desc_t*) &desc_info);