summaryrefslogtreecommitdiff
path: root/src/network/network_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/network_client.cpp')
-rw-r--r--src/network/network_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index 8098c00c2..326af65d7 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -1231,7 +1231,7 @@ void NetworkUpdateClientName()
if (!_network_server) {
MyClient::SendSetName(_settings_client.network.client_name);
} else {
- if (NetworkFindName(_settings_client.network.client_name)) {
+ if (NetworkFindName(_settings_client.network.client_name, lastof(_settings_client.network.client_name))) {
NetworkTextMessage(NETWORK_ACTION_NAME_CHANGE, CC_DEFAULT, false, ci->client_name, _settings_client.network.client_name);
strecpy(ci->client_name, _settings_client.network.client_name, lastof(ci->client_name));
NetworkUpdateClientInfo(CLIENT_ID_SERVER);