From: pwpiwi Date: Thu, 13 Feb 2020 07:37:17 +0000 (+0100) Subject: Merge pull request #913 from 0x2b3bfa0/patch-1 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/bedae7768cd6b73616be32d2d8753574ef2e1bb6?hp=d6e1d482844d6979533250dedc3724ce14f80294 Merge pull request #913 from 0x2b3bfa0/patch-1 Fix #912: ukbhit() false positive --- 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)