From 1ac2d22f7fc9e29616819c47fd4b43a7a5076ee0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 8 Jun 2003 20:43:26 +0000 Subject: Use _PW_NAME_LEN not MAXLOGNAME since the latter does not include the NUL. --- usr.sbin/user/user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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, -- cgit v1.2.3