Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!gwyn@brl-vld From: gwyn@brl-vld@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: System V stdio bug fix Message-ID: <4522@sri-arpa.UUCP> Date: Wed, 24-Aug-83 22:11:15 EDT Article-I.D.: sri-arpa.4522 Posted: Wed Aug 24 22:11:15 1983 Date-Received: Sat, 27-Aug-83 18:13:09 EDT Lines: 10 From: Doug Gwyn (VLD/VMB) The new, nifty stdio still has the same bug in findiop.c: The lines reading for(iop = _iob; iop->_flag & (_IOREAD | _IOWRT | _IORW); iop++) if(iop >= _lastbuf) should be changed to read for(iop = _iob; iop->_flag & (_IOREAD | _IOWRT | _IORW); ) if(++iop >= _lastbuf) in order to avoid a "boundary condition" bug.