client doesn't wait for '\0'

This commit is contained in:
buffet 2019-04-11 12:26:03 +02:00
parent 6d33b5b222
commit 9868cb1deb

View file

@ -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);