From de89c5bcfb7a562b872f51514d5c73c36f13a1c3 Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sun, 21 Jul 2019 15:40:02 +0800 Subject: [PATCH] Use sprintf() instead of snprintf() - fix msvc2010 build --- src/drivers/libretro/libretro_dipswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/libretro/libretro_dipswitch.c b/src/drivers/libretro/libretro_dipswitch.c index a64d3fc..5f5f099 100644 --- a/src/drivers/libretro/libretro_dipswitch.c +++ b/src/drivers/libretro/libretro_dipswitch.c @@ -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]);