commit | a0f63a4c7d7a6404fd43d139809202a693ae42e9 | [log] [tgz] |
---|---|---|
author | heasley <heas@shrubbery.net> | Thu Dec 03 21:14:16 2009 +0300 |
committer | Denis Ovsienko <infrastation@yandex.ru> | Thu Dec 03 21:14:16 2009 +0300 |
tree | 1af7685743107d08861f089de25df0196b10e441 | |
parent | 362573e5642b29ffeef5000351adc2d6ed6dfca3 [diff] [blame] |
zebra: fix argument reference in strncpy() call for BSD
diff --git a/zebra/ioctl.c b/zebra/ioctl.c index 5cf9e7b..d783b0a 100644 --- a/zebra/ioctl.c +++ b/zebra/ioctl.c
@@ -372,7 +372,7 @@ 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)