From owner-cvs-all@FreeBSD.ORG Mon Apr 14 04:24:54 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7E5037B401; Mon, 14 Apr 2003 04:24:54 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 666A043FBD; Mon, 14 Apr 2003 04:24:54 -0700 (PDT) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3EBOs0U014241; Mon, 14 Apr 2003 04:24:54 -0700 (PDT) (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3EBOsDs014240; Mon, 14 Apr 2003 04:24:54 -0700 (PDT) Message-Id: <200304141124.h3EBOsDs014240@repoman.freebsd.org> From: David Schultz Date: Mon, 14 Apr 2003 04:24:53 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdio vfprintf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2003 11:24:55 -0000 das 2003/04/14 04:24:53 PDT FreeBSD src repository Modified files: lib/libc/stdio vfprintf.c Log: Fix a bug where printf was erroneously printing a decimal point for %f and sufficiently short %g specifiers where the precision was explicitly zero, no '#' flag was specified, and the floating point argument was > 0 and <= 0.5. While at it, add some comments to better explain the relevant bits of code. Noticed by: Christoph Kukulies Revision Changes Path 1.58 +10 -8 src/lib/libc/stdio/vfprintf.c