diff --git a/source/blood/src/config.cpp b/source/blood/src/config.cpp index 54a4e81990..445ffe8c60 100644 --- a/source/blood/src/config.cpp +++ b/source/blood/src/config.cpp @@ -738,7 +738,7 @@ int CONFIG_ReadSetup(void) char nameBuf[64]; - while (Bstrlen(OSD_StripColors(nameBuf, tempbuf)) > 10) + while (Bstrlen(OSD_StripColors(nameBuf, tempbuf)) >= MAXPLAYERNAME) tempbuf[Bstrlen(tempbuf) - 1] = '\0'; Bstrncpyz(szPlayerName, tempbuf, sizeof(szPlayerName));