Mercurial > hg > openttd
changeset 9853:a1dfe725d2f9 draft
(svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 04 Aug 2008 19:07:37 +0000 |
parents | 3bb1d9cfc8ff |
children | d7ed2065524c |
files | src/network/core/host.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/core/host.cpp +++ b/src/network/core/host.cpp @@ -156,7 +156,7 @@ const char *buf_end = buf + ifconf.ifc_len; int index = 0; - for (const char *p = buf; p < buf_end && index != 0;) { + for (const char *p = buf; p < buf_end && index != limit;) { const struct ifreq* req = (const struct ifreq*)p; if (req->ifr_addr.sa_family == AF_INET) {