From 8f58cc7df99e9f697ca3843886802ecab5cb8991 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Fri, 12 Aug 2022 12:59:33 -0400 Subject: [PATCH] Cosmetic change (thanks Harry Porter) --- kernel/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/console.c b/kernel/console.c index 1e8d355..39415d6 100644 --- a/kernel/console.c +++ b/kernel/console.c @@ -165,7 +165,7 @@ consoleintr(int c) // store for consumption by consoleread(). cons.buf[cons.e++ % INPUT_BUF_SIZE] = c; - if(c == '\n' || c == C('D') || cons.e == cons.r+INPUT_BUF_SIZE){ + if(c == '\n' || c == C('D') || cons.e-cons.r == INPUT_BUF_SIZE){ // wake up consoleread() if a whole line (or end-of-file) // has arrived. cons.w = cons.e;