ANU News Patch Patch ID: 940524_newsadd.c!mark.martinec@ijs.si Date: 24-May-1994 Author: Mark Martinec Mark.Martinec@ijs.si News Version: 6.1beta9 News Files: NewsAdd.C Description: Fixes bug in NewsAdd.C which caused News to loop during Add File processing when it encountered two #! rnews lines in a row. *** newsadd.c --- newsadd_new.c ************** *** 239,241 **-- **/ --- 239,245 ----- + ** V6.1b9 24-May-1994 mark.martinec@ijs.si + ** - avoid looping when an empty article is received like in: + ** #! rnews 1 + ** #! rnews 1798 **-- **/ ************** *** 1614,1619 *header_size = 0; news_assert(!itm_text_tmp_in_use); for (; (!infile_eof && !infile_eom); get_line()) { *header_size += add_inline_l; if (itm_text[itm_text_tmp_l-1] == '\n') itm_text_tmp_l--; /* chop off \n */ --- 1618,1624 ----- *header_size = 0; news_assert(!itm_text_tmp_in_use); + if (infile_eom) abnormal_exit = 1; for (; (!infile_eof && !infile_eom); get_line()) { *header_size += add_inline_l; if (itm_text[itm_text_tmp_l-1] == '\n') itm_text_tmp_l--; /* chop off \n */ *** patchlist.h;-1 --- patchlist.h ************** *** 1,1 =+=+= End =+=+= --- 1,2 ----- + 940524_newsadd.c!mark.martinec@ijs.si =+=+= End =+=+=