Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix unitialized data when creating TOSERVER_INIT packet
  • Loading branch information
nerzhul committed Mar 8, 2015
1 parent 969413b commit 57d86cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 57d86cf

Please sign in to comment.