hurd: Fix typo

* sysdeps/mach/hurd/if_index.c (__if_nametoindex): Fix typo in IFNAMSIZ.
This commit is contained in:
Samuel Thibault 2018-04-04 02:31:23 +02:00
parent d8440a2147
commit 397f5789da

View File

@ -43,7 +43,7 @@ __if_nametoindex (const char *ifname)
return 0;
}
strncpy (ifr.ifr_name, ifname, IFNAMESIZ);
strncpy (ifr.ifr_name, ifname, IFNAMSIZ);
if (__ioctl (fd, SIOCGIFINDEX, &ifr) < 0)
{
int saved_errno = errno;