miroir de
https://github.com/luanti-org/luanti.git
synchronisé 2025-12-25 07:45:27 +01:00
Fix unitialized data when creating TOSERVER_INIT packet
Cette révision appartient à :
@@ -401,6 +401,8 @@ void Client::step(float dtime)
|
||||
|
||||
char pName[PLAYERNAME_SIZE];
|
||||
char pPassword[PASSWORD_SIZE];
|
||||
bzero(pName, PLAYERNAME_SIZE);
|
||||
bzero(pPassword, PLAYERNAME_SIZE);
|
||||
|
||||
snprintf(pName, PLAYERNAME_SIZE, "%s", myplayer->getName());
|
||||
snprintf(pPassword, PASSWORD_SIZE, "%s", m_password.c_str());
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur