From: notaz Date: Sun, 6 Aug 2017 16:23:36 +0000 (+0300) Subject: some fps counter cosmetics X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=picodrive.git;a=commitdiff_plain;h=36f37d2d6041b491dd5f506fb4f1778bb4218ea1 some fps counter cosmetics --- 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;