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
commit2efd0605f4054b1033ef255e0e2a3ee03070d56b (patch)
tree7ecded71944d85053d9fd3b321b1750063cc5647 /pw/pw_user.c
parentfe4c2973db9adb7c66b5852e36b172739d5b9b79 (diff)
downloadpw-darwin-2efd0605f4054b1033ef255e0e2a3ee03070d56b.tar.gz
pw-darwin-2efd0605f4054b1033ef255e0e2a3ee03070d56b.tar.zst
pw-darwin-2efd0605f4054b1033ef255e0e2a3ee03070d56b.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);