From owner-freebsd-audit Sun May 20 10:57:15 2001 Delivered-To: freebsd-audit@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 830A237B424 for ; Sun, 20 May 2001 10:57:13 -0700 (PDT) (envelope-from nectar@nectar.com) Received: by gw.nectar.com (Postfix, from userid 1001) id 0869518C93; Sun, 20 May 2001 12:57:12 -0500 (CDT) Date: Sun, 20 May 2001 12:57:12 -0500 From: "Jacques A. Vidrine" To: Kris Kennaway Cc: audit@FreeBSD.org Subject: Re: dd BDECFLAGS cleanup Message-ID: <20010520125712.B22932@spawn.nectar.com> References: <20010519213137.A13195@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010519213137.A13195@xor.obsecurity.org>; from kris@obsecurity.org on Sat, May 19, 2001 at 09:31:37PM -0700 X-Url: http://www.nectar.com/ Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, May 19, 2001 at 09:31:37PM -0700, Kris Kennaway wrote: > =================================================================== > RCS file: /home/ncvs/src/bin/dd/args.c,v > retrieving revision 1.27 > diff -u -r1.27 args.c > --- args.c 2000/10/22 23:00:32 1.27 > +++ args.c 2001/05/20 04:22:30 > @@ -168,8 +168,8 @@ > /* > * Bail out if the calculation of a file offset would overflow. > */ > - if (in.offset > QUAD_MAX / in.dbsz || out.offset > QUAD_MAX / out.dbsz) > - errx(1, "seek offsets cannot be larger than %qd", QUAD_MAX); > + if ((unsigned long long)in.offset > QUAD_MAX / in.dbsz || (unsigned long long)out.offset > QUAD_MAX / out.dbsz) > + errx(1, "seek offsets cannot be larger than %lld", (long long)QUAD_MAX); > } > > static int How about `(off_t)in.dbsz' and so on instead? There is no `long long' in C89, though there is in C99. Are we leaving C89 compatibility already? On the other hand, I don't know what to do with the format strings. Cheers, -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message