summaryrefslogtreecommitdiff
path: root/lib/libskey
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2000-07-18 11:32:27 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2000-07-18 11:32:27 +0000
commit93238a0c401282407930e2ecaf6ffe6cc1c79af3 (patch)
tree03bb30b79917f00cbe98c379508fbaa2f15ffab3 /lib/libskey
parent47e05f6091c794223b9276ec94e69f22e59093a8 (diff)
downloadsrc-test2-93238a0c401282407930e2ecaf6ffe6cc1c79af3.tar.gz
src-test2-93238a0c401282407930e2ecaf6ffe6cc1c79af3.zip
Notes
Diffstat (limited to 'lib/libskey')
-rw-r--r--lib/libskey/skeylogin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libskey/skeylogin.c b/lib/libskey/skeylogin.c
index d0564c4fa056..ae2e279090e9 100644
--- a/lib/libskey/skeylogin.c
+++ b/lib/libskey/skeylogin.c
@@ -17,6 +17,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <utmp.h>
#include "skey.h"
#include "pathnames.h"
@@ -123,7 +124,8 @@ const char *name;
/* Look up user name in database */
len = strlen(name);
- if( len > 8 ) len = 8; /* Added 8/2/91 - nmh */
+ if(len > UT_NAMESIZE)
+ len = UT_NAMESIZE;
found = 0;
while(!feof(mp->keyfile)){
recstart = ftell(mp->keyfile);