summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-08-08 22:27:02 +0000
committerkris <kris@FreeBSD.org>2001-08-08 22:27:02 +0000
commitacdbe140311c5548e2bda02bd255054f8af8f32e (patch)
tree6b29f621036f28e5f12c109cd43547e1279e38eb
parentb1558cdb69b1b1e81e70763015f7f1ccb1900656 (diff)
downloadFreeBSD-src-acdbe140311c5548e2bda02bd255054f8af8f32e.zip
FreeBSD-src-acdbe140311c5548e2bda02bd255054f8af8f32e.tar.gz
Whack this code with the Blessed Wand of Stack Protection.
MFC After: 1 week
-rw-r--r--usr.sbin/raycontrol/raycontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/raycontrol/raycontrol.c b/usr.sbin/raycontrol/raycontrol.c
index dbfe5c3..e361c5d 100644
--- a/usr.sbin/raycontrol/raycontrol.c
+++ b/usr.sbin/raycontrol/raycontrol.c
@@ -95,7 +95,7 @@ ray_getval(char *iface, struct ray_param_req *rreq)
bzero((char *)&ifr, sizeof(ifr));
- strcpy(ifr.ifr_name, iface);
+ strlcpy(ifr.ifr_name, iface, IFNAMSIZ);
ifr.ifr_data = (caddr_t)rreq;
s = socket(AF_INET, SOCK_DGRAM, 0);
OpenPOWER on IntegriCloud