summaryrefslogtreecommitdiff
path: root/zebra/ioctl.c
diff options
context:
space:
mode:
authorheasley <heas@shrubbery.net>2009-12-03 21:14:16 +0300
committerDenis Ovsienko <infrastation@yandex.ru>2009-12-03 21:14:16 +0300
commita0f63a4c7d7a6404fd43d139809202a693ae42e9 (patch)
tree1af7685743107d08861f089de25df0196b10e441 /zebra/ioctl.c
parent362573e5642b29ffeef5000351adc2d6ed6dfca3 (diff)
zebra: fix argument reference in strncpy() call for BSD
Diffstat (limited to 'zebra/ioctl.c')
-rw-r--r--zebra/ioctl.c2
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)