Kill gets() found
This commit is contained in:
parent
ea79e2eb48
commit
e381a36539
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user