Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 5/3/83; site ukc.UUCP Path: utzoo!watmath!clyde!floyd!vax135!ukc!rlh From: rlh@ukc.UUCP (R.L.Hellier) Newsgroups: net.bugs.4bsd Subject: the 4.2 addbib program Message-ID: <4150@ukc.UUCP> Date: Wed, 4-Apr-84 11:25:52 EST Article-I.D.: ukc.4150 Posted: Wed Apr 4 11:25:52 1984 Date-Received: Fri, 30-Mar-84 00:48:06 EST Organization: Computing Lab. Kent University, England Lines: 25 There is a bug in the "addbib" program as distributed with 4.2, namely that after prompting for the "Abstract:" field of a reference and receiving a ctrl+D terminator, the code goes into an infinite loop. Fix-By: Around line 152 of "addbib.c" there is a loop which looks like, while (fgets(line, BUFSIZ, stdin)) { ... stuff ... } append the following line after that closing brace, clearerr(stdin); and it then works ok. -- Richard Hellier rlh@ukc.UUCP ...!vax135!!ukc!rlh