summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/sys/param.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 9fb35d2e0b21..f4271e94f119 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 <acct.h>)
- * MAXLOGNAME should be >= UT_NAMESIZE (see <utmp.h>)
+ * MAXLOGNAME should be > max login_name + 1
+ * (see also UT_NAMESIZE (see <utmp.h>))
*/
#include <sys/syslimits.h>
#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 */