diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-08 20:43:26 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-08 20:43:26 +0000 |
commit | 1ac2d22f7fc9e29616819c47fd4b43a7a5076ee0 (patch) | |
tree | 5a7b07a8585c11a37012f9f91e915e4a8b8cb5b4 /usr.sbin/user | |
parent | 2390cbe0615f9c6bc0499de69e9c23d7d4f6aa45 (diff) |
Use _PW_NAME_LEN not MAXLOGNAME since the latter does not include the NUL.
Diffstat (limited to 'usr.sbin/user')
-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 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, |