diff --git a/src/client.cpp b/src/client.cpp index edf24445..ba6835f5 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -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());