mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
hurd: Fix typo
* sysdeps/mach/hurd/if_index.c (__if_nametoindex): Fix typo in IFNAMSIZ.
This commit is contained in:
parent
d8440a2147
commit
397f5789da
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user