summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-06-08 20:43:25 +0000
committermillert <millert@openbsd.org>2003-06-08 20:43:25 +0000
commitf5c2ddb1ff830f320966fa353567f8e02d46660c (patch)
treea4c1315c9a95f4f3fa16efb7f4d4e81d48b7d286
parentLet patsubst handle empty patterns: those match anywhere, and don't (diff)
downloadwireguard-openbsd-f5c2ddb1ff830f320966fa353567f8e02d46660c.tar.xz
wireguard-openbsd-f5c2ddb1ff830f320966fa353567f8e02d46660c.zip
Use _PW_NAME_LEN not MAXLOGNAME since the latter does not include the NUL.
-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,