the 4.2 addbib program

R.L.Hellier rlh at ukc.UUCP
Thu Apr 5 02:25:52 AEST 1984


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 at ukc.UUCP
				...!vax135!!ukc!rlh



More information about the Comp.bugs.4bsd.ucb-fixes mailing list