diff options
author | kris <kris@FreeBSD.org> | 2001-08-08 22:27:02 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-08-08 22:27:02 +0000 |
commit | acdbe140311c5548e2bda02bd255054f8af8f32e (patch) | |
tree | 6b29f621036f28e5f12c109cd43547e1279e38eb /usr.sbin/raycontrol | |
parent | b1558cdb69b1b1e81e70763015f7f1ccb1900656 (diff) | |
download | FreeBSD-src-acdbe140311c5548e2bda02bd255054f8af8f32e.zip FreeBSD-src-acdbe140311c5548e2bda02bd255054f8af8f32e.tar.gz |
Whack this code with the Blessed Wand of Stack Protection.
MFC After: 1 week
Diffstat (limited to 'usr.sbin/raycontrol')
-rw-r--r-- | usr.sbin/raycontrol/raycontrol.c | 2 |
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); |