Subject: tip parity bugfix
To: None <netbsd-bugs@NetBSD.ORG>
From: Trevor Blackwell <tlb@eecs.harvard.edu>
List: netbsd-bugs
Date: 08/09/1995 11:26:26
Tip works incorrectly when parity is set to none - it would apply odd
parity. This made it not be able to communicate with most consoles.

The error was a misunderstanding of C precedence rules; here is the
fix.


*** /usr/src/usr.bin/tip/tip.c       Wed Aug  9 11:05:19 1995
--- /usr/src/usr.bin/tip/tip.c-orig  Wed Aug  9 11:04:56 1995
***************
*** 600,604 ****
                (void) fflush(stderr);
        }
        for (i = 0; i < 0200; i++)
!               partab[i] = (evenpartab[i] ^ flip | set) & clr;
  }
--- 600,604 ----
                (void) fflush(stderr);
        }
        for (i = 0; i < 0200; i++)
!               partab[i] = evenpartab[i] ^ flip | set & clr;
  }

--
Trevor Blackwell         tlb@eecs.harvard.edu          (617) 495-8912