some fps counter cosmetics
authornotaz <notasas@gmail.com>
Sun, 6 Aug 2017 16:23:36 +0000 (19:23 +0300)
committernotaz <notasas@gmail.com>
Sun, 6 Aug 2017 16:23:36 +0000 (19:23 +0300)
platform/common/emu.c

index 7f375a3..6f42b73 100644 (file)
@@ -1427,7 +1427,7 @@ void emu_loop(void)
                        printf("%s\n", fpsbuff);\r
 #else\r
                        if (currentConfig.EmuOpt & EOPT_SHOW_FPS)\r
-                               sprintf(fpsbuff, "%02i/%02i  ", frames_shown, frames_done);\r
+                               snprintf(fpsbuff, 8, "%02i/%02i  ", frames_shown, frames_done);\r
 #endif\r
                        frames_shown = frames_done = 0;\r
                        timestamp_fps_x3 += ms_to_ticks(1000) * 3;\r