From a0f63a4c7d7a6404fd43d139809202a693ae42e9 Mon Sep 17 00:00:00 2001 From: heasley Date: Thu, 3 Dec 2009 21:14:16 +0300 Subject: zebra: fix argument reference in strncpy() call for BSD --- zebra/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1