summaryrefslogtreecommitdiffstats
path: root/libexec/login_radius
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-08-18 18:31:21 +0000
committerderaadt <deraadt@openbsd.org>2001-08-18 18:31:21 +0000
commita79f1fdf6ebde34c4f29edfe2186f1821b463802 (patch)
treea4cd799497e8b0ada01141975e5dc0fcac48241a /libexec/login_radius
parentSome more includes from NetBSD. (diff)
downloadwireguard-openbsd-a79f1fdf6ebde34c4f29edfe2186f1821b463802.tar.xz
wireguard-openbsd-a79f1fdf6ebde34c4f29edfe2186f1821b463802.zip
strlcpy invades the tree
Diffstat (limited to 'libexec/login_radius')
-rw-r--r--libexec/login_radius/raddauth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/login_radius/raddauth.c b/libexec/login_radius/raddauth.c
index c8883b0d41e..a819a3aa716 100644
--- a/libexec/login_radius/raddauth.c
+++ b/libexec/login_radius/raddauth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raddauth.c,v 1.4 2001/07/26 20:47:44 millert Exp $ */
+/* $OpenBSD: raddauth.c,v 1.5 2001/08/18 18:31:21 deraadt Exp $ */
/*-
* Copyright (c) 1996, 1997 Berkeley Software Design, Inc. All rights reserved.
@@ -347,7 +347,7 @@ rad_request(pid_t id, char *name, char *password, int port, char *vector,
*ptr++ = PW_PASSWORD;
*ptr++ = p * AUTH_VECTOR_LEN + 2;
- strncpy(pass_buf, password, AUTH_PASS_LEN); /* must zero fill */
+ strlcpy(pass_buf, password, AUTH_PASS_LEN); /* must zero fill */
/* Calculate the md5 digest */
secretlen = strlen(auth_secret);