=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/fetch.c,v retrieving revision 1.45 retrieving revision 1.46 diff -c -r1.45 -r1.46 *** src/usr.bin/ftp/fetch.c 2003/03/31 23:04:07 1.45 --- src/usr.bin/ftp/fetch.c 2003/04/05 17:19:47 1.46 *************** *** 1,4 **** ! /* $OpenBSD: fetch.c,v 1.45 2003/03/31 23:04:07 millert Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- --- 1,4 ---- ! /* $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,44 **** */ #ifndef lint ! static char rcsid[] = "$OpenBSD: fetch.c,v 1.45 2003/03/31 23:04:07 millert Exp $"; #endif /* not lint */ /* --- 38,44 ---- */ #ifndef lint ! static char rcsid[] = "$OpenBSD: fetch.c,v 1.46 2003/04/05 17:19:47 deraadt Exp $"; #endif /* not lint */ /* *************** *** 783,789 **** if (strcmp(host, lasthost) != 0) { int oautologin; ! (void)strcpy(lasthost, host); if (connected) disconnect(0, NULL); xargv[0] = __progname; --- 783,789 ---- if (strcmp(host, lasthost) != 0) { int oautologin; ! (void)strlcpy(lasthost, host, sizeof lasthost); if (connected) disconnect(0, NULL); xargv[0] = __progname;