add missing null terminator for player name on server info screen

This commit is contained in:
alufolie91 committed 2026-06-22 23:10:36 +02:00
1 parent f6d3ab1f3a
commit 07c780dc9c
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