From: utzoo!decvax!wivax!dyer Newsgroups: net.sources Title: unportability bug in cypher.c Article-I.D.: wivax.3865 Posted: Sat Jan 22 12:58:07 1983 Received: Sun Jan 23 09:11:10 1983 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