From 2ee2d0c1f6ef42dfd3c8948d2917c8452a6ae0ae Mon Sep 17 00:00:00 2001 From: davidn Date: Fri, 7 Feb 1997 10:41:41 +0000 Subject: Correct comments relating to MAXLOGNAME. MAXLOGNAME includes NUL terminator. --- sys/sys/param.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/sys/param.h b/sys/sys/param.h index 9fb35d2..f4271e9 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -59,13 +59,14 @@ * Redefined constants are from POSIX 1003.1 limits file. * * MAXCOMLEN should be >= sizeof(ac_comm) (see ) - * MAXLOGNAME should be >= UT_NAMESIZE (see ) + * MAXLOGNAME should be > max login_name + 1 + * (see also UT_NAMESIZE (see )) */ #include #define MAXCOMLEN 16 /* max command name remembered */ #define MAXINTERP 32 /* max interpreter file name length */ -#define MAXLOGNAME 16 /* max login name length */ +#define MAXLOGNAME 16 /* max login name length (incl. NUL) */ #define MAXUPRC CHILD_MAX /* max simultaneous processes */ #define NCARGS ARG_MAX /* max bytes for an exec function */ #define NGROUPS NGROUPS_MAX /* max number groups */ -- cgit v1.1