diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-03-03 07:59:54 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-03-03 07:59:54 +0000 |
commit | c348c9e5b93765086b759dc9aa8d9c5ce3739261 (patch) | |
tree | d302cb5506f63b48001748b81363e97f2ee04a1a /pw/pw_user.c | |
parent | 4d71529927c4e15e123d70cd125d6c8b6b566711 (diff) | |
download | pw-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.c | 4 |
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); |