Diff between a5e8a0f2e956bd5a16d09889fc62618674811f3d and 5c9dc418ecc3854fa4c4f4af44d8c9f2700892d1
Changed Files
| File | Additions | Deletions | Status |
| tools/bneptest.c | +1 | -1 | modified |
Full Patch
diff --git a/tools/bneptest.c b/tools/bneptest.c
index a7d5815..1404252 100644
--- a/tools/bneptest.c
+++ b/tools/bneptest.c
@@ -89,7 +89,7 @@ static int set_forward_delay(int sk)
struct ifreq ifr;
memset(&ifr, 0, sizeof(ifr));
- strncpy(ifr.ifr_name, bridge, IFNAMSIZ);
+ strncpy(ifr.ifr_name, bridge, IFNAMSIZ - 1);
ifr.ifr_data = (char *) args;
if (ioctl(sk, SIOCDEVPRIVATE, &ifr) < 0) {