]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL
authorAndrey A. Chernov <ache@FreeBSD.org>
Mon, 3 Mar 1997 07:59:54 +0000 (07:59 +0000)
committerAndrey A. Chernov <ache@FreeBSD.org>
Mon, 3 Mar 1997 07:59:54 +0000 (07:59 +0000)
pw/pw_user.c

index faebb3063ea3d190d265595e32c4fa303518ce94..a5ea8017434b60585084a3be173f4f64b5d449e8 100644 (file)
 #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);