add missing null terminator for player name on server info screen

This commit is contained in:
alufolie91 committed 2026-06-22 23:10:28 +02:00
1 parent 3fe4399656
commit c44b3f3f9b
1 file changed
+1
+1
View File
@@ -1449,6 +1449,7 @@ static void CL_DrawConnectionStatus(void)
if (playerinfo[i].node < 255)
{
strncpy(player_name, playerinfo[i].name, MAXPLAYERNAME);
player_name[MAXPLAYERNAME] = '\0';
// if we get a skin color
// try to colourize the player name