From 88a8088545a6ffa72286ee4613cb512ea7cd2ecf Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 6 Aug 2017 19:23:36 +0300 Subject: [PATCH] some fps counter cosmetics --- platform/common/emu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/common/emu.c b/platform/common/emu.c index 7f375a3c..6f42b73d 100644 --- a/platform/common/emu.c +++ b/platform/common/emu.c @@ -1427,7 +1427,7 @@ void emu_loop(void) printf("%s\n", fpsbuff); #else if (currentConfig.EmuOpt & EOPT_SHOW_FPS) - sprintf(fpsbuff, "%02i/%02i ", frames_shown, frames_done); + snprintf(fpsbuff, 8, "%02i/%02i ", frames_shown, frames_done); #endif frames_shown = frames_done = 0; timestamp_fps_x3 += ms_to_ticks(1000) * 3; -- 2.39.5