From f8c8405311e127c9915860ec3757414fc22e5f4a Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 4 Nov 2008 18:20:41 +0000 Subject: (svn r14564) -Fix (r14555): one more incorrect use of lastof() --- src/network/network_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 3d69cbc02..f337fcad2 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -1194,7 +1194,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_SET_PASSWORD) ci = DEREF_CLIENT_INFO(cs); if (IsValidCompanyID(ci->client_playas)) { - strecpy(_network_company_info[ci->client_playas].password, password, lastof(_network_company_info[0].password)); + strecpy(_network_company_info[ci->client_playas].password, password, lastof(_network_company_info[ci->client_playas].password)); } } -- cgit v1.2.3-70-g09d2