summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-08-17 12:31:17 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-08-17 12:31:17 +0000
commit0160624e0921c098464bc22950a006457e04d954 (patch)
treefc3e5fb6d06981e1006fe0f84e08184195ec8825 /libexec
parent25d5946a2e96f2dba025397ed31046e3e7ebfdde (diff)
downloadFreeBSD-src-0160624e0921c098464bc22950a006457e04d954.zip
FreeBSD-src-0160624e0921c098464bc22950a006457e04d954.tar.gz
Don't set an arbitrary limit on username lengths; use MAXLOGNAME
instead. PR: 20675 Submitted by: Vladimir B Grebenschikov <vova@express.ru>
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 8c09122..f4a40aa 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -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.
OpenPOWER on IntegriCloud