From owner-cvs-lib Mon Mar 3 09:53:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA16584 for cvs-lib-outgoing; Mon, 3 Mar 1997 09:53:09 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA16576; Mon, 3 Mar 1997 09:53:06 -0800 (PST) Date: Mon, 3 Mar 1997 09:53:06 -0800 (PST) From: Bruce Evans Message-Id: <199703031753.JAA16576@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/stdio vfscanf.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/03/03 09:53:05 Modified: lib/libc/stdio vfscanf.c Log: Fixed handling of input failure by the scanf family. - 0 was returned instead of EOF when an input failure occured while skipping white-space after 0 assignments. This fixes PR2606. The diagnosis in PR2606 is wrong. - EOF was returned instead of 0 when an input failure occurred after zero assignments and nonzero suppressed assignments. - EOF was spelled -1. This should be in 2.2. Revision Changes Path 1.8 +11 -3 src/lib/libc/stdio/vfscanf.c