Kill gets() found

This commit is contained in:
Andrey A. Chernov 1996-02-23 03:01:53 +00:00
parent 92871d692a
commit e7f2f8f46c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14199

View file

@ -15,13 +15,13 @@
* -l[ifetime]
*
* from: kinit.c,v 4.12 90/03/20 16:11:15 jon Exp $
* $Id: kinit.c,v 1.4 1995/08/03 17:16:00 mark Exp $
* $Id: kinit.c,v 1.4 1995/09/07 21:37:29 markm Exp $
*/
#if 0
#ifndef lint
static char rcsid[] =
"$Id: kinit.c,v 1.4 1995/08/03 17:16:00 mark Exp $";
"$Id: kinit.c,v 1.4 1995/09/07 21:37:29 markm Exp $";
#endif lint
#endif
@ -154,7 +154,7 @@ main(argc, argv)
if (pwd == (struct passwd *) NULL) {
fprintf(stderr, "Unknown name for your uid\n");
printf("Kerberos name: ");
gets(aname);
get_input(aname, sizeof(aname), stdin);
} else
strncpy(aname, pwd->pw_name, sizeof(aname));
}