client doesn't wait for '\0'
This commit is contained in:
parent
0191435bd4
commit
6d2ade6016
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue