client doesn't wait for '\0'

This commit is contained in:
buffet 2019-04-11 12:26:03 +02:00
parent 0191435bd4
commit 6d2ade6016

View file

@ -58,7 +58,7 @@ main(int argc, char **argv)
fflush(socket_file); fflush(socket_file);
int c; int c;
while ((c = getc(socket_file)) != '\0') { while ((c = getc(socket_file)) != EOF) {
putchar(c); putchar(c);
if (c == '\n') { if (c == '\n') {
fflush(stdout); fflush(stdout);