summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/user/user.c4
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) {