From 35aa6e78474840446f6795383472e209c45e5b33 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 16 Sep 2010 23:16:06 +0000 Subject: [PATCH] - fixed: The player name input box did not 0-terminate the string when temporarily appending an underscore for the cursor display. SVN r2804 (trunk) --- src/menu/playermenu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/menu/playermenu.cpp b/src/menu/playermenu.cpp index b25b86f1a6..b23a4d4222 100644 --- a/src/menu/playermenu.cpp +++ b/src/menu/playermenu.cpp @@ -162,6 +162,7 @@ void FPlayerNameBox::Drawer(bool selected) { size_t l = strlen(mEditName); mEditName[l] = (gameinfo.gametype & (GAME_DoomStrifeChex)) ? '_' : '['; + mEditName[l+1] = 0; screen->DrawText (SmallFont, CR_UNTRANSLATED, x + mFrameSize, mYpos, mEditName, DTA_Clean, true, TAG_DONE);