diff options
-rw-r--r-- | zebra/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c index 5cf9e7b0..d783b0a3 100644 --- a/zebra/ioctl.c +++ b/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) |