summaryrefslogtreecommitdiffstats
path: root/crypto/kerberosIV/lib/roken/iruserok.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-01-09 08:31:47 +0000
committermarkm <markm@FreeBSD.org>2000-01-09 08:31:47 +0000
commitca616c603d9e06e51c9e23fab7536acbdac58331 (patch)
tree20a735799ecd3b90df122d0a8042762dd62c6b0e /crypto/kerberosIV/lib/roken/iruserok.c
parentfe83e8abf357ee11114856a5278bb38431a9517c (diff)
downloadFreeBSD-src-ca616c603d9e06e51c9e23fab7536acbdac58331.zip
FreeBSD-src-ca616c603d9e06e51c9e23fab7536acbdac58331.tar.gz
Clean import of KTH Kerberos (eBones) v1.0.
Diffstat (limited to 'crypto/kerberosIV/lib/roken/iruserok.c')
-rw-r--r--crypto/kerberosIV/lib/roken/iruserok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/kerberosIV/lib/roken/iruserok.c b/crypto/kerberosIV/lib/roken/iruserok.c
index 63eaccf..7cac29f 100644
--- a/crypto/kerberosIV/lib/roken/iruserok.c
+++ b/crypto/kerberosIV/lib/roken/iruserok.c
@@ -33,7 +33,7 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
-RCSID("$Id: iruserok.c,v 1.21 1999/03/11 14:04:15 joda Exp $");
+RCSID("$Id: iruserok.c,v 1.22 1999/09/16 20:06:06 assar Exp $");
#endif
#include <stdio.h>
@@ -123,7 +123,7 @@ __ivaliduser(FILE *hostf, unsigned raddr, const char *luser,
sizeof(u_long),
AF_INET)) == NULL)
return (-1);
- strcpy_truncate(hname, hp->h_name, sizeof(hname));
+ strlcpy(hname, hp->h_name, sizeof(hname));
while (fgets(buf, sizeof(buf), hostf)) {
p = buf;
OpenPOWER on IntegriCloud