Fix unportable use of isspace(), per buildfarm results.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jul 2007 22:32:53 +0000 (22:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jul 2007 22:32:53 +0000 (22:32 +0000)
contrib/tsearch2/stopword.c

index 2165bb68ddc4ce05b2fb00e89425e5d49f004db0..5f6d56bce30f496bacc961c3c12da23662f2ba46 100644 (file)
@@ -48,7 +48,7 @@ readstoplist(text *in, StopList * s)
                while (fgets(buf, sizeof(buf), hin))
                {
                        pbuf = buf;
-                       while( *pbuf && !isspace( *pbuf ) )
+                       while( *pbuf && !isspace((unsigned char) *pbuf ) )
                                pbuf++;
                        *pbuf = '\0';