Fix garbage string being drawn on record attack menu

Pretty silly of me to assume it would be NUL-terminated by default.
This commit is contained in:
Steel Titanium 2019-11-03 21:43:09 -05:00
parent 96aa11c825
commit 16c107e2ac
No known key found for this signature in database
GPG key ID: 924BA411F18DFDBE

View file

@ -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