summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-09-28 17:35:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-09-28 17:35:26 +0000
commit5a94a7f66629a282a55413fb2d623eeb9b82c05b (patch)
tree550d0de40464cc25fded9b0f389127489f964202 /usr.bin
parent976438666c3721ba5f8190edd109f2ef8e0d4906 (diff)
strings for username are of size UT_NAMESIZE
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/skeyinit/skeyinit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/skeyinit/skeyinit.c b/usr.bin/skeyinit/skeyinit.c
index 1bfbababbaf..e9fb6ffb43b 100644
--- a/usr.bin/skeyinit/skeyinit.c
+++ b/usr.bin/skeyinit/skeyinit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: skeyinit.c,v 1.5 1996/09/28 00:04:44 millert Exp $ */
+/* $OpenBSD: skeyinit.c,v 1.6 1996/09/28 17:35:25 millert Exp $ */
/* $NetBSD: skeyinit.c,v 1.6 1995/06/05 19:50:48 pk Exp $ */
/* S/KEY v1.1b (skeyinit.c)
@@ -23,6 +23,7 @@
#include <pwd.h>
#include <unistd.h>
#include <time.h>
+#include <utmp.h>
#include <ctype.h>
#include <skey.h>
@@ -46,7 +47,7 @@ main(argc, argv)
char hostname[MAXHOSTNAMELEN];
char seed[18], tmp[80], key[8], defaultseed[17];
char passwd[256], passwd2[256], tbuf[27], buf[60];
- char lastc, me[80], *salt, *p, *pw;
+ char lastc, me[UT_NAMESIZE], *salt, *p, *pw;
struct skey skey;
struct passwd *pp;
struct tm *tm;