Commit 66daeb07 authored by Teodor Sigaev's avatar Teodor Sigaev

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

parent debb3aa8
...@@ -48,7 +48,7 @@ readstoplist(text *in, StopList * s) ...@@ -48,7 +48,7 @@ readstoplist(text *in, StopList * s)
while (fgets(buf, sizeof(buf), hin)) while (fgets(buf, sizeof(buf), hin))
{ {
pbuf = buf; pbuf = buf;
while( !isspace( *pbuf ) ) while( *pbuf && !isspace( *pbuf ) )
pbuf++; pbuf++;
*pbuf = '\0'; *pbuf = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment