Commit eccf3475 authored by Milan Broz's avatar Milan Broz

Flush stdout when expecting user input on stdin.

parent e24a72f8
......@@ -143,6 +143,7 @@ int yesDialog(const char *msg, void *usrptr __attribute__((unused)))
if(isatty(STDIN_FILENO) && !opt_batch_mode) {
log_std("%s\n\nAre you sure? (Type uppercase yes): ", msg);
if(getline(&answer, &size, stdin) == -1) {
r = 0;
/* Aborted by signal */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment