From: retro-wertz Date: Sat, 3 Aug 2019 12:56:36 +0000 (+0800) Subject: Silence a few more warnings X-Git-Tag: r24l~706^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6f1e7f70c3ee3816e417f97aef1501a1f950976;p=pcsx_rearmed.git Silence a few more warnings - silence a few more truncated warnings - change "disable" to "disabled" in core options --- diff --git a/frontend/libretro.c b/frontend/libretro.c index b8d17ab9..bdf08293 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 6513e1c4..f0bd9023 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", diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c index 0c2b1904..af7ebede 100644 --- a/libpcsxcore/plugins.c +++ b/libpcsxcore/plugins.c @@ -1182,7 +1182,7 @@ void SetIsoFile(const char *filename) { IsoFile[0] = '\0'; return; } - strncpy(IsoFile, filename, MAXPATHLEN); + strncpy(IsoFile, filename, MAXPATHLEN - 1); } const char *GetIsoFile(void) {