diff options
author | ache <ache@FreeBSD.org> | 1997-03-03 07:59:54 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-03 07:59:54 +0000 |
commit | 78407f0914803274187a7a3c3501d8bc38424168 (patch) | |
tree | 761cf4aa29834d719912417c68b49b46a2fe7970 /usr.sbin/pw | |
parent | 09cbe4801b5c8212020b199ae46964370796cf7e (diff) | |
download | FreeBSD-src-78407f0914803274187a7a3c3501d8bc38424168.zip FreeBSD-src-78407f0914803274187a7a3c3501d8bc38424168.tar.gz |
Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r-- | usr.sbin/pw/pw_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index faebb30..a5ea801 100644 --- a/usr.sbin/pw/pw_user.c +++ b/usr.sbin/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); |