From: Will Sowerbutts Date: Wed, 25 Feb 2015 00:17:03 +0000 (+0000) Subject: Kernel: Minor bug fix for tty_open X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=69f7c96a332f1c8bbdf49c65b3cb566c751caafe;p=FUZIX.git Kernel: Minor bug fix for tty_open --- diff --git a/Kernel/tty.c b/Kernel/tty.c index c0958684..c0817cc7 100644 --- a/Kernel/tty.c +++ b/Kernel/tty.c @@ -154,7 +154,7 @@ int tty_open(uint8_t minor, uint16_t flag) and inode somehow ??? */ if (!minor) minor = udata.u_ptab->p_tty; - if (minor < 1 || minor > NUM_DEV_TTY + 1) { + if (minor < 1 || minor > NUM_DEV_TTY) { udata.u_error = ENODEV; return (-1); }