summaryrefslogtreecommitdiff
path: root/usr.sbin/user
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2000-06-16 07:17:40 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2000-06-16 07:17:40 +0000
commit47836b4e59321826b8e38efc3622ad845ddf6ff3 (patch)
tree583fa93e4369ffb0849522f1c88611565c0aa439 /usr.sbin/user
parente3f37480afd9f20e88b51c3f2e549e782316dd9e (diff)
Fix PR 1279.
Diffstat (limited to 'usr.sbin/user')
-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) {