From 481e7caecbdccf6b8c62aba37496515d6c231dc6 Mon Sep 17 00:00:00 2001 From: Peter Avalos Date: Sat, 7 Mar 2009 03:52:26 -0500 Subject: [PATCH] Increase "max" to a more reasonable maximum in getbsize. Obtained-from: FreeBSD --- lib/libc/gen/getbsize.3 | 6 +----- lib/libc/gen/getbsize.c | 8 +++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/libc/gen/getbsize.3 b/lib/libc/gen/getbsize.3 index 9525845d86..362aa07a90 100644 --- a/lib/libc/gen/getbsize.3 +++ b/lib/libc/gen/getbsize.3 @@ -9,10 +9,6 @@ .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. @@ -30,7 +26,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)getbsize.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/gen/getbsize.3,v 1.5.2.3 2001/12/14 18:33:51 ru Exp $ +.\" $FreeBSD: src/lib/libc/gen/getbsize.3,v 1.11 2007/01/09 00:27:53 imp Exp $ .\" $DragonFly: src/lib/libc/gen/getbsize.3,v 1.2 2003/06/17 04:26:42 dillon Exp $ .\" .Dd June 4, 1993 diff --git a/lib/libc/gen/getbsize.c b/lib/libc/gen/getbsize.c index 087f6f5f9d..054becdbf6 100644 --- a/lib/libc/gen/getbsize.c +++ b/lib/libc/gen/getbsize.c @@ -10,10 +10,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. @@ -31,6 +27,7 @@ * SUCH DAMAGE. * * @(#)getbsize.c 8.1 (Berkeley) 6/4/93 + * $FreeBSD: src/lib/libc/gen/getbsize.c,v 1.9 2008/08/04 06:53:13 cperciva Exp $ * $DragonFly: src/lib/libc/gen/getbsize.c,v 1.4 2005/11/13 00:07:42 swildner Exp $ */ @@ -81,7 +78,8 @@ getbsize(int *headerlenp, long *blocksizep) break; default: fmterr: warnx("%s: unknown blocksize", p); - max = n = 512; + n = 512; + max = MAXB; mul = 1; break; } -- 2.41.0