diff --git a/gfx/display_servers/dispserv_x11.c b/gfx/display_servers/dispserv_x11.c index a4d727ddc1..a8698998f2 100644 --- a/gfx/display_servers/dispserv_x11.c +++ b/gfx/display_servers/dispserv_x11.c @@ -218,14 +218,14 @@ static bool x11_display_server_set_resolution(void *data, /* create interlaced newmode from modline variables */ if (height < 300) { - snprintf(xrandr, sizeof(xrandr), "xrandr --newmode \"%dx%d_%0.2f\" %lf %d %d %d %d %d %d %d %d -hsync -vsync", width, height, hz, pixel_clock, + snprintf(xrandr, sizeof(xrandr), "xrandr --newmode \"%dx%d_%0.2f\" %f %d %d %d %d %d %d %d %d -hsync -vsync", width, height, hz, pixel_clock, width, hfp, hsp, hbp, height, vfp, vsp, vbp); system(xrandr); } /* create interlaced newmode from modline variables */ if (height > 300) { - snprintf(xrandr, sizeof(xrandr), "xrandr --newmode \"%dx%d_%0.2f\" %lf %d %d %d %d %d %d %d %d interlace -hsync -vsync", width, height, hz, pixel_clock, + snprintf(xrandr, sizeof(xrandr), "xrandr --newmode \"%dx%d_%0.2f\" %f %d %d %d %d %d %d %d %d interlace -hsync -vsync", width, height, hz, pixel_clock, width, hfp, hsp, hbp, height, vfp, vsp, vbp); system(xrandr); } diff --git a/libretro-common/include/retro_miscellaneous.h b/libretro-common/include/retro_miscellaneous.h index 5972c1796f..629ce12c34 100644 --- a/libretro-common/include/retro_miscellaneous.h +++ b/libretro-common/include/retro_miscellaneous.h @@ -166,7 +166,7 @@ typedef struct #endif # endif #else -# define PRI_SIZET "zu" +# define PRI_SIZET "lu" #endif #endif diff --git a/menu/menu_driver.c b/menu/menu_driver.c index f6d575538a..dcd2e2af25 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -392,7 +392,7 @@ void menu_display_timedate(menu_display_ctx_datetime_t *datetime) case 7: /* Time (hours-minutes), in 12 hour AM-PM designation */ #if defined(__linux__) && !defined(ANDROID) strftime(datetime->s, datetime->len, - "%r", localtime(&time_)); + "%I : %M : %S %p", localtime(&time_)); #else { char *local; diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index 2fcc934247..db201ae222 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -731,7 +731,7 @@ static void netplay_announce_cb(void *task_data, void *user_data, const char *er if (string_is_equal(key, "game_name")) strlcpy(host_room->gamename, val, sizeof(host_room->gamename)); if (string_is_equal(key, "game_crc")) - sscanf(val, "%08X", &host_room->gamecrc); + sscanf(val, "%08d", &host_room->gamecrc); if (string_is_equal(key, "host_method")) sscanf(val, "%i", &host_room->host_method); if (string_is_equal(key, "has_password"))