Skip to content

Commit

Permalink
Merge pull request #851 from tmyqlfpir/fix-names
Browse files Browse the repository at this point in the history
Blood: Increase player name limit to 16 characters
  • Loading branch information
Hendricks266 authored Oct 5, 2024
2 parents 78f3de6 + 08c0fa2 commit 48e0598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/blood/src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 48e0598

Please sign in to comment.