From 9868cb1debc2592c7a4c21a1ccc87a560b52ab0b Mon Sep 17 00:00:00 2001 From: Charlotte Meyer 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 a6fd661..629e92f 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);