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