summaryrefslogtreecommitdiff
path: root/usr.bin/skeyinit/skeyinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/skeyinit/skeyinit.c')
-rw-r--r--usr.bin/skeyinit/skeyinit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/skeyinit/skeyinit.c b/usr.bin/skeyinit/skeyinit.c
index 98f4e935ea2..1bfbababbaf 100644
--- a/usr.bin/skeyinit/skeyinit.c
+++ b/usr.bin/skeyinit/skeyinit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: skeyinit.c,v 1.4 1996/09/27 15:49:04 millert Exp $ */
+/* $OpenBSD: skeyinit.c,v 1.5 1996/09/28 00:04:44 millert Exp $ */
/* $NetBSD: skeyinit.c,v 1.6 1995/06/05 19:50:48 pk Exp $ */
/* S/KEY v1.1b (skeyinit.c)
@@ -55,8 +55,7 @@ main(argc, argv)
errx(1, "must be setuid root.");
(void)time(&now);
- tm = localtime(&now);
- (void)strftime(tbuf, sizeof(tbuf), "%M%j", tm);
+ (void)sprintf(tbuf, "%05ld", (long) (now % 100000));
if (gethostname(hostname, sizeof(hostname)) < 0)
err(1, "gethostname");