From 16c107e2ac3ac3590bbf2b5822bb425dd27f6cc5 Mon Sep 17 00:00:00 2001 From: Steel Titanium Date: Sun, 3 Nov 2019 21:43:09 -0500 Subject: [PATCH] Fix garbage string being drawn on record attack menu Pretty silly of me to assume it would be NUL-terminated by default. --- src/m_menu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/m_menu.c b/src/m_menu.c index 8fe782cac..e736cc6f7 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -8723,6 +8723,10 @@ void M_DrawTimeAttackMenu(void) char beststr[40]; char reqscore[40], reqtime[40], reqrings[40]; + strcpy(reqscore, "\0"); + strcpy(reqtime, "\0"); + strcpy(reqrings, "\0"); + M_DrawLevelPlatterHeader(32-lsheadingheight/2, cv_nextmap.string, true, false); // A 160x100 image of the level as entry MAPxxP