[net.bugs.4bsd] the 4.2 addbib program

rlh@ukc.UUCP (R.L.Hellier) (04/04/84)

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