From 36f37d2d6041b491dd5f506fb4f1778bb4218ea1 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 7f375a3..6f42b73 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.2