Date: Mon, 15 Jul 2002 20:25:13 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Dag-Erling Smorgrav <des@ofug.org> Cc: Giorgos Keramidas <keramida@FreeBSD.ORG>, <freebsd-audit@FreeBSD.ORG> Subject: Re: bin/ln & WARNS=5 Message-ID: <20020715202126.S40071-100000@gamplex.bde.org> In-Reply-To: <xzpele59w21.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On 15 Jul 2002, Dag-Erling Smorgrav wrote: > Giorgos Keramidas <keramida@FreeBSD.org> writes: > > The following allows me to build bin/ln with WARNS=5 on i386. > > Does it look OK, or have I missed something important? > > I'd rather cast sizeof to int. That would break the possibly-intentional check for snprintf() failing. (size_t)-1 >= sizeof(path), but !(-1 >= (int)sizeof(path)). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020715202126.S40071-100000>