]> sourceware.org Git - glibc.git/commitdiff
hurd: Fix typo
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 4 Apr 2018 00:31:23 +0000 (02:31 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 4 Apr 2018 00:31:23 +0000 (02:31 +0200)
* sysdeps/mach/hurd/if_index.c (__if_nametoindex): Fix typo in IFNAMSIZ.

sysdeps/mach/hurd/if_index.c

index de859ebc7c4e08b94656ca9653b5f6186f93cbbb..4303c938a87a38f26f3b466eb641b4d02b25182d 100644 (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;
This page took 0.044987 seconds and 5 git commands to generate.