From 97f7ec13f100e5efd9404787f5dfe27e22b30d85 Mon Sep 17 00:00:00 2001 From: ceri Date: Tue, 24 Feb 2004 20:58:16 +0000 Subject: Have edquota honour MAXLOGNAME rather than hardcoding the maximum username length to 29 characters. PR: misc/62944 Submitted by: David Hill Approved by: ru MFC after: 1 week --- usr.sbin/edquota/edquota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/edquota/edquota.c') 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(); -- cgit v1.1