diff options
author | 2000-06-16 07:17:39 +0000 | |
---|---|---|
committer | 2000-06-16 07:17:39 +0000 | |
commit | 1560fafb48381641a9c0236ea0a88a593902b24b (patch) | |
tree | 3680961368bd9d7bef6cb81e1a35ff0f6b68d08e | |
parent | ssl package no longer needed (will be tested) (diff) | |
download | wireguard-openbsd-1560fafb48381641a9c0236ea0a88a593902b24b.tar.xz wireguard-openbsd-1560fafb48381641a9c0236ea0a88a593902b24b.zip |
Fix PR 1279.
-rw-r--r-- | usr.sbin/user/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c index c9c40f87be6..dd8751b7c0a 100644 --- a/usr.sbin/user/user.c +++ b/usr.sbin/user/user.c @@ -1,4 +1,4 @@ -/* $OpenBSD: user.c,v 1.14 2000/06/09 16:34:24 millert Exp $ */ +/* $OpenBSD: user.c,v 1.15 2000/06/16 07:17:39 ho Exp $ */ /* $NetBSD: user.c,v 1.17 2000/04/14 06:26:55 simonb Exp $ */ /* @@ -937,7 +937,7 @@ moduser(char *login, char *newlogin, user_t *up) } /* if home directory hasn't been given, use the old one */ if (!up->u_homeset) { - (void) strlcpy(home, pwp->pw_dir, strlen(home)); + (void) strlcpy(home, pwp->pw_dir, sizeof(home)); } expire = 0; if (up->u_expire != NULL) { |