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 4b6b6e5cba
commit d2e5b41369

View file

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