Changeset - r5569:969448560399
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2007-01-08 19:18:53
darkvater@openttd.org
(svn r7984) -Fix: out-of-bounds read access on _clients array (Quark)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/network.c
Show inline comments
 
@@ -81,7 +81,7 @@ NetworkClientState *NetworkFindClientSta
 
{
 
	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;
 
	}
 

	
0 comments (0 inline, 0 general)