summaryrefslogtreecommitdiffstats
path: root/usr.sbin/edquota
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2004-02-24 20:58:16 +0000
committerceri <ceri@FreeBSD.org>2004-02-24 20:58:16 +0000
commit97f7ec13f100e5efd9404787f5dfe27e22b30d85 (patch)
treea69be065cca943422b176452d979fb88b96ce2e0 /usr.sbin/edquota
parent1849fdd1ac82def384a52143515d83a723132c57 (diff)
downloadFreeBSD-src-97f7ec13f100e5efd9404787f5dfe27e22b30d85.zip
FreeBSD-src-97f7ec13f100e5efd9404787f5dfe27e22b30d85.tar.gz
Have edquota honour MAXLOGNAME rather than hardcoding the maximum
username length to 29 characters. PR: misc/62944 Submitted by: David Hill <david@wmol.com> Approved by: ru MFC after: 1 week
Diffstat (limited to 'usr.sbin/edquota')
-rw-r--r--usr.sbin/edquota/edquota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index a030877..87ef4df 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -110,7 +110,7 @@ main(int argc, char **argv)
char *protoname, *cp, *oldoptarg;
int eflag = 0, tflag = 0, pflag = 0, ch;
char *fspath = NULL;
- char buf[30];
+ char buf[MAXLOGNAME];
if (argc < 2)
usage();
OpenPOWER on IntegriCloud