diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-08-18 18:31:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-08-18 18:31:22 +0000 |
commit | aa5ec6e986b2282d373774bb1dfbc0d8d4bd2b6f (patch) | |
tree | f0cfddb8baa8a94c8ddcc4e24b32cfd363e85775 /libexec/login_radius/raddauth.c | |
parent | f635e5aa9e03108817900699c84263901777bd52 (diff) |
strlcpy invades the tree
Diffstat (limited to 'libexec/login_radius/raddauth.c')
-rw-r--r-- | libexec/login_radius/raddauth.c | 4 |
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); |