]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix argument reference in strncpy() call for BSD
authorheasley <heas@shrubbery.net>
Thu, 3 Dec 2009 18:14:16 +0000 (21:14 +0300)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 3 Dec 2009 18:14:16 +0000 (21:14 +0300)
zebra/ioctl.c

index 5cf9e7b0531890464e6860453b9ac4ea6d5628d5..d783b0a386892d32b4af6eedfbe552541ec54bb2 100644 (file)
@@ -372,7 +372,7 @@ if_get_flags (struct interface *ifp)
   if (CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_LINKDETECTION))
     {
       (void) memset(&ifmr, 0, sizeof(ifmr));
-      strncpy (&ifmr.ifm_name, ifp->name, IFNAMSIZ);
+      strncpy (ifmr.ifm_name, ifp->name, IFNAMSIZ);
       
       /* Seems not all interfaces implement this ioctl */
       if (if_ioctl(SIOCGIFMEDIA, (caddr_t) &ifmr) < 0)