From owner-cvs-all@FreeBSD.ORG Sat Apr 5 14:03:44 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 82B4437B404; Sat, 5 Apr 2003 14:03:44 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E96143F93; Sat, 5 Apr 2003 14:03:44 -0800 (PST) (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 h35M3h0U025667; Sat, 5 Apr 2003 14:03:43 -0800 (PST) (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h35M3hK0025666; Sat, 5 Apr 2003 14:03:43 -0800 (PST) Message-Id: <200304052203.h35M3hK0025666@repoman.freebsd.org> From: David Schultz Date: Sat, 5 Apr 2003 14:03:43 -0800 (PST) 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 floatio.h vfprintf.c vfwprintf.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: Sat, 05 Apr 2003 22:03:45 -0000 das 2003/04/05 14:03:43 PST FreeBSD src repository Modified files: lib/libc/stdio floatio.h vfprintf.c vfwprintf.c Log: Correct some buffer sizes. - __vfprintf()'s 'buf' has never been used for floating point, so don't define it in terms of (incorrect) constants describing floating point numbers. The actual size needed depends on sizeof(uintmax_t) and locale details, so I slightly overestimated. - We don't need a 308-character buffer to store the string "308". With long doubles and %a we need more than three characters, though. Revision Changes Path 1.3 +11 -4 src/lib/libc/stdio/floatio.h 1.53 +16 -10 src/lib/libc/stdio/vfprintf.c 1.8 +15 -9 src/lib/libc/stdio/vfwprintf.c