1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00
This commit is contained in:
deraadt 1999-12-04 21:16:05 +00:00
parent b759e02bc5
commit 8c2345295d
2 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* * $OpenBSD: skey.c,v 1.12 1999/03/06 20:27:41 millert Exp $*/
/* * $OpenBSD: skey.c,v 1.13 1999/12/04 21:20:20 deraadt Exp $*/
/*
* S/KEY v1.1b (skey.c)
*
@ -62,7 +62,9 @@ main(argc, argv)
case 'p':
if (i + 1 == argc)
usage(argv[0]);
(void)strcpy(passwd, argv[++i]);
if (strlcpy(passwd, argv[++i], sizeof(passwd)) >
sizeof(passwd))
errx(1, "Password too long");
pass = 1;
break;
case 'x':

View File

@ -1,4 +1,4 @@
/* $OpenBSD: split.c,v 1.4 1999/02/04 03:53:48 millert Exp $ */
/* $OpenBSD: split.c,v 1.5 1999/12/04 21:16:05 deraadt Exp $ */
/* $NetBSD: split.c,v 1.5 1995/08/31 22:22:05 jtc Exp $ */
/*
@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94";
#else
static char rcsid[] = "$OpenBSD: split.c,v 1.4 1999/02/04 03:53:48 millert Exp $";
static char rcsid[] = "$OpenBSD: split.c,v 1.5 1999/12/04 21:16:05 deraadt Exp $";
#endif
#endif /* not lint */
@ -145,7 +145,7 @@ main(argc, argv)
++argv;
}
if (*argv != NULL) /* File name prefix. */
(void)strcpy(fname, *argv++);
(void)strlcpy(fname, *argv++, sizeof(fname));
if (*argv != NULL)
usage();