From owner-cvs-src@FreeBSD.ORG Mon Apr 11 10:57:54 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9014E16A4CE; Mon, 11 Apr 2005 10:57:54 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6585B43D2D; Mon, 11 Apr 2005 10:57:54 +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 j3BAvse9077183; Mon, 11 Apr 2005 10:57:54 GMT (envelope-from stefanf@repoman.freebsd.org) Received: (from stefanf@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3BAvst1077182; Mon, 11 Apr 2005 10:57:54 GMT (envelope-from stefanf) Message-Id: <200504111057.j3BAvst1077182@repoman.freebsd.org> From: Stefan Farfeleder Date: Mon, 11 Apr 2005 10:57:54 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/printf printf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2005 10:57:54 -0000 stefanf 2005-04-11 10:57:54 UTC FreeBSD src repository Modified files: usr.bin/printf printf.c Log: 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. MFC after: 1 week Revision Changes Path 1.31 +3 -3 src/usr.bin/printf/printf.c