From owner-cvs-all Thu Jan 4 18:13:19 2001 From owner-cvs-all@FreeBSD.ORG Thu Jan 4 18:13:15 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from puck.firepipe.net (poynting.physics.purdue.edu [128.210.146.58]) by hub.freebsd.org (Postfix) with ESMTP id 21B8437B400; Thu, 4 Jan 2001 18:13:11 -0800 (PST) Received: from argon.firepipe.net (pm013-044.dialup.bignet.net [64.79.82.108]) by puck.firepipe.net (Postfix) with ESMTP id 406421A50; Thu, 4 Jan 2001 21:13:10 -0500 (EST) Received: by argon.firepipe.net (Postfix, from userid 1000) id 8628819E0; Thu, 4 Jan 2001 21:12:57 -0500 (EST) Date: Thu, 4 Jan 2001 21:12:57 -0500 From: Will Andrews To: Brian Somers Cc: Chris Faulhaber , Will Andrews , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/apply apply.c Message-ID: <20010104211257.V86630@argon.firepipe.net> Reply-To: Will Andrews Mail-Followup-To: Will Andrews , Brian Somers , Chris Faulhaber , Will Andrews , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org References: <200101050206.f0526rB87964@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200101050206.f0526rB87964@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Fri, Jan 05, 2001 at 02:06:53AM +0000 X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: will@argon.firepipe.net Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jan 05, 2001 at 02:06:53AM +0000, Brian Somers wrote: > Also (and this bug was already there), s[n]printf() returns the length > of what it would have liked to have put in the target, not what it > actually wrote. If the first s[n]printf() above ends up truncating, > the second one will happily overflow. Yes, Jacques pointed this out to me in private email. I am fixing this bug too. > s[n]printf() is poorly documented in this area. I agree. -- wca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message