diff options
| -rw-r--r-- | test/checkers.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/checkers.cxx b/test/checkers.cxx index eae70019a..c5e116d6a 100644 --- a/test/checkers.cxx +++ b/test/checkers.cxx @@ -66,6 +66,10 @@ const char* copyright = #include <stdarg.h> #include <time.h> +#ifdef VT100 +#include <ctype.h> // toupper +#endif + //////////////////////////////////////////////////////////////// // The algorithim: @@ -732,7 +736,7 @@ node *getusermove(void) { else printf("\033[1mCommand?\033[0m "); abortflag = 0; - if (!gets(line)) { + if (!fgets(line, sizeof(line), stdin)) { putchar('\n'); if (feof(stdin)) fixexit(0); return 0; |
