From 4086d48e9615fa4acf675925af863f9465e5e7b1 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Sun, 18 Jun 2000 20:44:37 +0000 Subject: strcpy() -> strlcpy() --- sbin/ancontrol/ancontrol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/ancontrol') diff --git a/sbin/ancontrol/ancontrol.c b/sbin/ancontrol/ancontrol.c index 986fc863c96..74c6ebf5b39 100644 --- a/sbin/ancontrol/ancontrol.c +++ b/sbin/ancontrol/ancontrol.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ancontrol.c,v 1.2 2000/05/20 17:28:41 deraadt Exp $ */ +/* $OpenBSD: ancontrol.c,v 1.3 2000/06/18 20:44:33 aaron Exp $ */ /* * Copyright 1997, 1998, 1999 * Bill Paul . All rights reserved. @@ -129,7 +129,7 @@ an_getval(iface, areq) bzero((char *)&ifr, sizeof(ifr)); - strcpy(ifr.ifr_name, iface); + strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)); ifr.ifr_data = (caddr_t)areq; s = socket(AF_INET, SOCK_DGRAM, 0); @@ -155,7 +155,7 @@ an_setval(iface, areq) bzero((char *)&ifr, sizeof(ifr)); - strcpy(ifr.ifr_name, iface); + strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)); ifr.ifr_data = (caddr_t)areq; s = socket(AF_INET, SOCK_DGRAM, 0); -- cgit v1.2.3