From: Andrey A. Chernov Date: Mon, 3 Mar 1997 07:59:54 +0000 (+0000) Subject: Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/commitdiff_plain/c348c9e5b93765086b759dc9aa8d9c5ce3739261 Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL --- 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);