summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-06-08 20:43:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-06-08 20:43:26 +0000
commit1ac2d22f7fc9e29616819c47fd4b43a7a5076ee0 (patch)
tree5a7b07a8585c11a37012f9f91e915e4a8b8cb5b4 /usr.sbin
parent2390cbe0615f9c6bc0499de69e9c23d7d4f6aa45 (diff)
Use _PW_NAME_LEN not MAXLOGNAME since the latter does not include the NUL.
Diffstat (limited to 'usr.sbin')
-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 6d441041abc..7152192ff8b 100644
--- a/usr.sbin/user/user.c
+++ b/usr.sbin/user/user.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: user.c,v 1.42 2003/05/13 01:12:31 millert Exp $ */
+/* $OpenBSD: user.c,v 1.43 2003/06/08 20:43:25 millert Exp $ */
/* $NetBSD: user.c,v 1.45 2001/08/17 08:29:00 joda Exp $ */
/*
@@ -154,7 +154,7 @@ enum {
enum {
MaxShellNameLen = 256,
MaxFileNameLen = MAXPATHLEN,
- MaxUserNameLen = MAXLOGNAME,
+ MaxUserNameLen = _PW_NAME_LEN,
MaxCommandLen = 2048,
PasswordLength = _PASSWORD_LEN,