File diff r10200:53144d1ea86c → r10201:1df3c42fa13e
src/network/core/host.cpp
Show inline comments
 
@@ -162,7 +162,7 @@ static int NetworkFindBroadcastIPsIntern
 
		if (req->ifr_addr.sa_family == AF_INET) {
 
			struct ifreq r;
 

	
 
			strncpy(r.ifr_name, req->ifr_name, lengthof(r.ifr_name));
 
			strecpy(r.ifr_name, req->ifr_name, lastof(r.ifr_name));
 
			if (ioctl(sock, SIOCGIFFLAGS, &r) != -1 &&
 
					r.ifr_flags & IFF_BROADCAST &&
 
					ioctl(sock, SIOCGIFBRDADDR, &r) != -1) {