From owner-cvs-all Thu Mar 1 0:48:39 2001 Delivered-To: cvs-all@freebsd.org Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by hub.freebsd.org (Postfix) with ESMTP id 26F9337B71C for ; Thu, 1 Mar 2001 00:48:37 -0800 (PST) (envelope-from freebsd@dohd.org) Received: from nala.dohd.org (tunnel01.ipv6.stack.nl [2001:610:1108:5001::1]) by mailhost.stack.nl (Postfix) with ESMTP id 0CF5C1587D for ; Thu, 1 Mar 2001 09:48:36 +0100 (CET) Received: from tiggr.local.dohd.org (tiggr.ipv6.stack.nl [2001:610:1108:5201:250:fcff:fe0b:c665]) by nala.dohd.org (Postfix) with ESMTP id 9C619D9C2 for ; Thu, 1 Mar 2001 09:48:35 +0100 (MET) Received: by tiggr.local.dohd.org (Postfix, from userid 1008) id 2B9A75D9A; Thu, 1 Mar 2001 09:48:35 +0100 (CET) Date: Thu, 1 Mar 2001 09:48:34 +0100 From: Mark Huizer To: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/finger util.c Message-ID: <20010301094834.A38217@dohd.cx> References: <200103010552.f215qcp99447@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200103010552.f215qcp99447@freefall.freebsd.org>; from imp@FreeBSD.org on Wed, Feb 28, 2001 at 09:52:38PM -0800 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Feb 28, 2001 at 09:52:38PM -0800, Warner Losh wrote: > imp 2001/02/28 21:52:38 PST > > Modified files: > usr.bin/finger util.c > Log: > MAXPATHLEN is enough. > > Also, snprinf is guaranteed by the new ansi standard to NUL terminate the > string, so we don't need to do that ourselves. > Geeh :-) I wonder how people will differ in their code between old and new ansi standards (not for usr.bin, but for stuff in ports). Isn't it rather unsafe to rely on that when trying to write portable software? mark -- Nice testing in little China... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message