Add checking of end of line in parsing stopword list. Thanks to sharp eyes of Tom lane

This commit is contained in:
Teodor Sigaev 2007-03-26 13:57:07 +00:00
parent debb3aa8e9
commit 66daeb074b

View file

@ -48,7 +48,7 @@ readstoplist(text *in, StopList * s)
while (fgets(buf, sizeof(buf), hin))
{
pbuf = buf;
while( !isspace( *pbuf ) )
while( *pbuf && !isspace( *pbuf ) )
pbuf++;
*pbuf = '\0';