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 | 2efd0605f4054b1033ef255e0e2a3ee03070d56b (patch) | |
| tree | 7ecded71944d85053d9fd3b321b1750063cc5647 /pw/pw_user.c | |
| parent | fe4c2973db9adb7c66b5852e36b172739d5b9b79 (diff) | |
| download | pw-darwin-2efd0605f4054b1033ef255e0e2a3ee03070d56b.tar.gz 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.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); |
