提交 66daeb07 编写于 作者: T Teodor Sigaev

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

上级 debb3aa8
......@@ -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';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册