Browse Source

zebra: fix argument reference in strncpy() call for BSD

heasley 10 years ago
parent
commit
a0f63a4c7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      zebra/ioctl.c

+ 1 - 1
zebra/ioctl.c

@@ -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)