From acdbe140311c5548e2bda02bd255054f8af8f32e Mon Sep 17 00:00:00 2001 From: kris Date: Wed, 8 Aug 2001 22:27:02 +0000 Subject: Whack this code with the Blessed Wand of Stack Protection. MFC After: 1 week --- usr.sbin/raycontrol/raycontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/raycontrol') 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); -- cgit v1.1