(svn r26488) -Codechange: perform the appropriate length checks when getting a client name

This commit is contained in:
rubidium
2014-04-23 21:19:54 +00:00
parent a5274117bd
commit 160ad31028
3 changed files with 7 additions and 7 deletions

View File

@@ -168,7 +168,7 @@ void NetworkError(StringID error_string);
void NetworkTextMessage(NetworkAction action, TextColour colour, bool self_send, const char *name, const char *str = "", int64 data = 0);
uint NetworkCalculateLag(const NetworkClientSocket *cs);
StringID GetNetworkErrorMsg(NetworkErrorCode err);
bool NetworkFindName(char new_name[NETWORK_CLIENT_NAME_LENGTH]);
bool NetworkFindName(char *new_name, const char *last);
const char *GenerateCompanyPasswordHash(const char *password, const char *password_server_id, uint32 password_game_seed);
#endif /* ENABLE_NETWORK */