1
0
Fork 0

(svn r7984) -Fix: out-of-bounds read access on _clients array (Quark)

release/0.6
Darkvater 2007-01-08 19:18:53 +00:00
parent 48b4226f5e
commit 5acbc88ee1
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ NetworkClientState *NetworkFindClientStateFromIndex(uint16 client_index)
{
NetworkClientState *cs;
for (cs = _clients; cs != &_clients[MAX_CLIENT_INFO]; cs++) {
for (cs = _clients; cs != endof(_clients); cs++) {
if (cs->index == client_index) return cs;
}