client: flush stdout after printing prompt

Apparently fgets() doesn't flush stdout in some libc implementations.
This commit is contained in:
Miroslav Lichvar 2016-09-06 15:47:40 +02:00
parent 9603f0552a
commit 1d9d19d76b

View file

@ -125,6 +125,7 @@ read_line(void)
return( line );
#else
printf("%s", prompt);
fflush(stdout);
#endif
}
if (fgets(line, sizeof(line), stdin)) {