From 163f48e11211401b3dea3d1205fbf1b33d76ea93 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Wed, 25 Feb 2004 11:28:58 +0000 Subject: [PATCH] edquota(8) should honour MAXLOGNAME. Obtained from: FreeBSD PR: misc/62944 Patch submitted by Chris Pressey --- usr.sbin/edquota/edquota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c index f6edb92693..493b0c0f67 100644 --- a/usr.sbin/edquota/edquota.c +++ b/usr.sbin/edquota/edquota.c @@ -36,7 +36,7 @@ * @(#) Copyright (c) 1980, 1990, 1993 The Regents of the University of California. All rights reserved. * @(#)edquota.c 8.1 (Berkeley) 6/6/93 * $FreeBSD: src/usr.sbin/edquota/edquota.c,v 1.9.2.6 2002/10/31 22:38:43 iedowse Exp $ - * $DragonFly: src/usr.sbin/edquota/edquota.c,v 1.4 2003/11/16 14:10:45 eirikn Exp $ + * $DragonFly: src/usr.sbin/edquota/edquota.c,v 1.5 2004/02/25 11:28:58 joerg Exp $ */ /* @@ -101,7 +101,7 @@ main(int argc, char **argv) char *protoname, *cp, *oldoptarg, ch; int eflag = 0, tflag = 0, pflag = 0; char *fspath = NULL; - char buf[30]; + char buf[MAXLOGNAME]; if (argc < 2) usage(); -- 2.41.0