From fc31408d8736bdcdc7b301dbc8e147e7fad0e169 Mon Sep 17 00:00:00 2001 From: Ceri Davies Date: Tue, 24 Feb 2004 20:58:16 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c index a03087707419..87ef4df7e8bb 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();