mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Kill gets() found
This commit is contained in:
parent
92871d692a
commit
e7f2f8f46c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14199
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue