[net.sources] unportability bug in cypher.c

dyer (01/22/83)

If your machine assumes char's are unsigned, then the program
cypher.c will fail with a seg violation, because the test

	while ((i = sgetchar()) != EOF)

will naturally fail.  The fix is to replace the external declaration
	char sgetchar();
within passfile() with
	int sgetchar();         /* or of course, you could omit it */

And, of course, in the later definition of sgetchar(), replace the
lines:
char            WITH            int      
sgetchar()                      sgetchar()      
{                               {               
...                             ...             
}                               }               

So far, this is the only bug I have found, which is quite a compliment,
since I have it running on a BBN C/70 (20-bit words, 10-bit, unsigned
chars!).
/Steve Dyer