--- spell-1.0/spell.c.dg	2005-10-22 11:26:24.000000000 -0700
+++ spell-1.0/spell.c	2005-10-22 11:49:32.000000000 -0700
@@ -545,7 +545,7 @@
     {
       FD_ZERO(&fdset);
       FD_SET (the_pipe->perr, &fdset);
-      FD_SET (the_pipe->pout, &fdset);
+      FD_SET (the_pipe->pin, &fdset);
       time_out.tv_sec=1; time_out.tv_usec=0;
 
       ret=select(FD_SETSIZE, &fdset, NULL, NULL,&time_out);
@@ -569,7 +569,7 @@
           fprintf (stderr, "%s: %s\n", ispell_prog, str->str);
         }
 
-        if (FD_ISSET(the_pipe->pout, &fdset))
+        if (FD_ISSET(the_pipe->pin, &fdset))
         {
           /* This block parses Ispell's banner and grabs its version.  It then
              prints it if the flag `--ispell-version' or `-I' was used.
