summaryrefslogtreecommitdiffstats
path: root/pw/pw_user.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-03-03 07:59:54 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-03-03 07:59:54 +0000
commitc348c9e5b93765086b759dc9aa8d9c5ce3739261 (patch)
treed302cb5506f63b48001748b81363e97f2ee04a1a /pw/pw_user.c
parent4d71529927c4e15e123d70cd125d6c8b6b566711 (diff)
downloadpw-darwin-c348c9e5b93765086b759dc9aa8d9c5ce3739261.tar.gz
pw-darwin-c348c9e5b93765086b759dc9aa8d9c5ce3739261.tar.zst
pw-darwin-c348c9e5b93765086b759dc9aa8d9c5ce3739261.zip
Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL
Diffstat (limited to 'pw/pw_user.c')
-rw-r--r--pw/pw_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index faebb30..a5ea801 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -44,10 +44,10 @@
#include "bitmap.h"
#include "pwupd.h"
-#if MAXLOGNAME > UT_NAMESIZE
+#if (MAXLOGNAME-1) > UT_NAMESIZE
#define LOGNAMESIZE UT_NAMESIZE
#else
-#define LOGNAMESIZE MAXLOGNAME
+#define LOGNAMESIZE (MAXLOGNAME-1)
#endif
static int print_user(struct passwd * pwd, int pretty);