Skip to content

Commit

Permalink
Fix possible "FPS" string doubling in -timedemo runs
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky committed Jun 8, 2023
1 parent 54fe6b0 commit ff6d809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/doom/crlfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/heretic/crlfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff6d809

Please sign in to comment.