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);