Merge pull request #287 from retro-wertz/fix_msvc2010

Use sprintf() instead of snprintf()
This commit is contained in:
hizzlekizzle
2019-07-21 10:13:40 -05:00
committed by GitHub

View File

@@ -1098,7 +1098,7 @@ static void make_core_options(struct retro_core_option_definition *opt)
char key[100] = {0};
/* Set core key and sanitize string */
len = snprintf(key, sizeof(key), "%s%s%c%s", "fceumm_dipswitch_", romname_short, '-', option_name);
len = sprintf(key, "fceumm_dipswitch_%s-%s", romname_short, option_name);
core_key[i] = calloc(len + 1, sizeof(char));
strcpy(core_key[i], key);
opt[i].key = str_to_corekey(core_key[i]);