From owner-cvs-all@FreeBSD.ORG Wed Apr 20 08:03:59 2005 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 4B14516A4CE; Wed, 20 Apr 2005 08:03:59 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D6D243D3F; Wed, 20 Apr 2005 08:03:59 +0000 (GMT) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3K83w7W087225; Wed, 20 Apr 2005 08:03:58 GMT (envelope-from stefanf@repoman.freebsd.org) Received: (from stefanf@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3K83wng087224; Wed, 20 Apr 2005 08:03:58 GMT (envelope-from stefanf) Message-Id: <200504200803.j3K83wng087224@repoman.freebsd.org> From: Stefan Farfeleder Date: Wed, 20 Apr 2005 08:03:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/usr.bin/printf printf.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: Wed, 20 Apr 2005 08:03:59 -0000 stefanf 2005-04-20 08:03:58 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) usr.bin/printf printf.c Log: MFC rev. 1.31 and 1.32: Replace buggy for-loops to skip certain character with strspn(). If *fmt was '\0' (eg in the invocation 'printf %'), the for-loop would miss the terminating null character. Assign 0.0 to the variable passed to getfloating() if the argument is missing. Revision Changes Path 1.28.2.1 +6 -4 src/usr.bin/printf/printf.c