summaryrefslogtreecommitdiffstats
path: root/eBones/usr.bin/kinit
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-02-23 03:01:53 +0000
committerache <ache@FreeBSD.org>1996-02-23 03:01:53 +0000
commite381a36539c7bb205f117f6f24bb31b4ac9a2551 (patch)
tree90dae13131d536d708d8356dc92b1339e177f380 /eBones/usr.bin/kinit
parentea79e2eb48cfb01e08510917dcb672226d19c25d (diff)
downloadFreeBSD-src-e381a36539c7bb205f117f6f24bb31b4ac9a2551.zip
FreeBSD-src-e381a36539c7bb205f117f6f24bb31b4ac9a2551.tar.gz
Kill gets() found
Diffstat (limited to 'eBones/usr.bin/kinit')
-rw-r--r--eBones/usr.bin/kinit/kinit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eBones/usr.bin/kinit/kinit.c b/eBones/usr.bin/kinit/kinit.c
index 3b47c7c..86c38ee 100644
--- a/eBones/usr.bin/kinit/kinit.c
+++ b/eBones/usr.bin/kinit/kinit.c
@@ -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));
}
OpenPOWER on IntegriCloud