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