Don't set an arbitrary limit on username lengths; use MAXLOGNAME

instead.

PR:		20675
Submitted by:	Vladimir B Grebenschikov <vova@express.ru>
This commit is contained in:
sheldonh 2000-08-17 12:31:17 +00:00
parent 25d5946a2e
commit 0160624e09

View File

@ -871,7 +871,7 @@ sgetpwnam(name)
static int login_attempts; /* number of failed login attempts */
static int askpasswd; /* had user command, ask for passwd */
static char curname[10]; /* current USER name */
static char curname[MAXLOGNAME]; /* current USER name */
/*
* USER command.