diff options
-rw-r--r-- | chat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chat.c b/chat.c index c85a1fe..ed33fbd 100644 --- a/chat.c +++ b/chat.c @@ -145,7 +145,7 @@ static char *prompt(const char *prompt) { fflush(stdout); ssize_t len = getline(&line, &cap, stdin); - //if (ferror(stdin)) err(EX_IOERR, "getline"); + if (ferror(stdin)) err(EX_IOERR, "getline"); if (feof(stdin)) exit(EX_OK); if (len < 2) continue; |