diff options
author | Darkvater <darkvater@openttd.org> | 2007-01-08 19:18:53 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2007-01-08 19:18:53 +0000 |
commit | 5acbc88ee19ee066b3175a2a0ef24bbd38be72f2 (patch) | |
tree | 49d2a806398eaa918a9df6f47ea59db425579237 | |
parent | 48b4226f5e6774e403847715d5c552f7b91c683f (diff) | |
download | openttd-5acbc88ee19ee066b3175a2a0ef24bbd38be72f2.tar.xz |
(svn r7984) -Fix: out-of-bounds read access on _clients array (Quark)
-rw-r--r-- | src/network/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.c b/src/network/network.c index d3bad7574..ac8dd82b7 100644 --- a/src/network/network.c +++ b/src/network/network.c @@ -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; } |