From: Alan Cox Date: Mon, 10 Nov 2014 01:00:23 +0000 (+0000) Subject: tty: fix bracketing X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d60097b238768b18d6371c390805ec8917b4b7bc;p=FUZIX.git tty: fix bracketing --- diff --git a/Kernel/tty.c b/Kernel/tty.c index bada714d..2f20d825 100644 --- a/Kernel/tty.c +++ b/Kernel/tty.c @@ -330,7 +330,7 @@ int tty_inproc(uint8_t minor, unsigned char c) /* All modes come here */ if (c == '\n') { - if ((td->c_oflag & OPOST | ONLCR) == OPOST | ONLCR) + if ((td->c_oflag & (OPOST | ONLCR)) == (OPOST | ONLCR)) tty_echo(minor, '\r'); }