From 6d2ade60163f44930bfc462ff5e282ddd2cb2169 Mon Sep 17 00:00:00 2001 From: buffet Date: Thu, 11 Apr 2019 12:26:03 +0200 Subject: [PATCH] client doesn't wait for '\0' --- kiwmic/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiwmic/main.c b/kiwmic/main.c index 5e4a9d6..c68ae09 100644 --- a/kiwmic/main.c +++ b/kiwmic/main.c @@ -58,7 +58,7 @@ main(int argc, char **argv) fflush(socket_file); int c; - while ((c = getc(socket_file)) != '\0') { + while ((c = getc(socket_file)) != EOF) { putchar(c); if (c == '\n') { fflush(stdout);