From ff6d80983dee71cf8c558131a4fc48ba5f3f1491 Mon Sep 17 00:00:00 2001 From: Julia Nechaevskaya Date: Thu, 8 Jun 2023 13:47:19 +0300 Subject: [PATCH] Fix possible "FPS" string doubling in `-timedemo` runs --- src/doom/crlfunc.c | 2 +- src/heretic/crlfunc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doom/crlfunc.c b/src/doom/crlfunc.c index 03e78de9..306c8f6b 100644 --- a/src/doom/crlfunc.c +++ b/src/doom/crlfunc.c @@ -581,7 +581,7 @@ void CRL_StatDrawer (void) void CRL_DrawFPS (void) { - char fps[4]; + char fps[8]; char fps_str[4]; sprintf(fps, "%d", CRL_fps); diff --git a/src/heretic/crlfunc.c b/src/heretic/crlfunc.c index 510d7ddc..f0adc1c3 100644 --- a/src/heretic/crlfunc.c +++ b/src/heretic/crlfunc.c @@ -448,7 +448,7 @@ void CRL_StatDrawer (void) void CRL_DrawFPS (void) { - char fps[4]; + char fps[8]; char fps_str[4]; sprintf(fps, "%d", CRL_fps);