Fix #6763, using _SIZEOF_ADDR_IFREQ() macro.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39747 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2010-12-06 11:35:53 +00:00
parent 42bd140546
commit f27dcfe07b

View File

@ -115,7 +115,7 @@ ifaddrlist(register struct ifaddrlist **ipaddrp, register char *errbuf)
nipaddr = 0;
for (; ifrp < ifend; ifrp = ifnext) {
#ifdef HAVE_SOCKADDR_SA_LEN
n = ifrp->ifr_addr.sa_len + sizeof(ifrp->ifr_name);
n = _SIZEOF_ADDR_IFREQ(*ifrp);
/*
* our ifreqs from SIOCGIFCONF dumps are very packed
*/