mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Fix unitialized data when creating TOSERVER_INIT packet
This commit is contained in:
parent
969413b9fa
commit
57d86cf574
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user