From 8f831ceb0b38ed2d736584b40261cb6ca565d021 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Sun, 9 Feb 2020 18:04:46 +0100 Subject: [PATCH] Fix #912 --- client/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/util.c b/client/util.c index 3b299c9a..4e93b8f5 100644 --- a/client/util.c +++ b/client/util.c @@ -49,7 +49,7 @@ int ukbhit(void) error += tcsetattr(STDIN_FILENO, TCSANOW, &Otty); // reset attributes } - return ( error == 0 ? cnt : -1 ); + return cnt; } char getch(void) -- 2.39.5