Skip to main content.
home | support | download

Back to List Archive

Indexing bug when last char != whitespace

From: Paul J. Lucas <pjl(at)not-real.ptolemy.arc.nasa.gov>
Date: Fri Nov 14 1997 - 01:15:19 GMT
	It appears as though there is a bug in:

		index.c:countwords()

	in that if a text file has EOF immediately after a word
	character, e.g.:

		somefile.txt
		------------
		Now is the time<EOF>

	where EOF is right after the 'e' in "time," then the last word
	on the line, in this case "time", is not indexed.

	Anybody care to make an "official" fix?

	- Paul J. Lucas
	  NASA Ames Research Center		Caelum Research Corporation
	  Moffett Field, California		San Jose, California
	  <pjl AT ptolemy DOT arc DOT nasa DOT gov>
Received on Thu Nov 13 17:23:09 1997