From 13fab97ccf3297292728cca2d356339cc8e5ee5a Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sat, 3 Aug 2019 08:35:12 +0800 Subject: Silence warning -Wformat-overflow - Increasing the maximum size of destination char array to x2 to silence this warning. --- frontend/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/main.c b/frontend/main.c index c0bfd0f..81a68e3 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -870,7 +870,7 @@ static int _OpenPlugins(void) { if (Config.UseNet && !NetOpened) { netInfo info; - char path[MAXPATHLEN]; + char path[MAXPATHLEN * 2]; char dotdir[MAXPATHLEN]; MAKE_PATH(dotdir, "/.pcsx/plugins/", NULL); -- cgit v1.2.3 From e6f1e7f70c3ee3816e417f97aef1501a1f950976 Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sat, 3 Aug 2019 20:56:36 +0800 Subject: Silence a few more warnings - silence a few more truncated warnings - change "disable" to "disabled" in core options --- frontend/libretro.c | 6 +++--- frontend/libretro_core_options.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'frontend') diff --git a/frontend/libretro.c b/frontend/libretro.c index b8d17ab..bdf0829 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -962,11 +962,11 @@ static struct retro_disk_control_callback disk_control = { #define PATH_MAX 4096 #endif -static char base_dir[PATH_MAX]; +static char base_dir[1024]; static bool read_m3u(const char *file) { - char line[PATH_MAX]; + char line[1024]; char name[PATH_MAX]; FILE *f = fopen(file, "r"); if (!f) @@ -2130,7 +2130,7 @@ static int init_memcards(void) static void loadPSXBios(void) { const char *dir; - char path[256]; + char path[PATH_MAX]; unsigned useHLE = 0; const char *bios[] = { diff --git a/frontend/libretro_core_options.h b/frontend/libretro_core_options.h index 6513e1c..f0bd902 100644 --- a/frontend/libretro_core_options.h +++ b/frontend/libretro_core_options.h @@ -77,11 +77,11 @@ struct retro_core_option_definition option_defs_us[] = { "Enable Second Memory Card (Shared)", "Enabled the memory card slot 2. This memory card is shared amongst all games.", { - { "disable", NULL }, + { "disabled", NULL }, { "enabled", NULL }, { NULL, NULL}, }, - "disable", + "disabled", }, { "pcsx_rearmed_pad1type", -- cgit v1.2.3