summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/fetch.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-05 17:19:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-05 17:19:48 +0000
commit445d126575d44ecad8b51f707821f2fb6f955a09 (patch)
tree914bd46efceaf827eb3f3beb1414efdba5499163 /usr.bin/ftp/fetch.c
parent13750e94c549169e2b0159730d364f107660e262 (diff)
string fixes; ok miod henning
Diffstat (limited to 'usr.bin/ftp/fetch.c')
-rw-r--r--usr.bin/ftp/fetch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index 62a97c948d9..d988fc2e13d 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fetch.c,v 1.45 2003/03/31 23:04:07 millert Exp $ */
+/* $OpenBSD: fetch.c,v 1.46 2003/04/05 17:19:47 deraadt Exp $ */
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
/*-
@@ -38,7 +38,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: fetch.c,v 1.45 2003/03/31 23:04:07 millert Exp $";
+static char rcsid[] = "$OpenBSD: fetch.c,v 1.46 2003/04/05 17:19:47 deraadt Exp $";
#endif /* not lint */
/*
@@ -783,7 +783,7 @@ bad_ftp_url:
if (strcmp(host, lasthost) != 0) {
int oautologin;
- (void)strcpy(lasthost, host);
+ (void)strlcpy(lasthost, host, sizeof lasthost);
if (connected)
disconnect(0, NULL);
xargv[0] = __progname;