From de1b34b708c74709fcea10fd84408ea794cbb20c Mon Sep 17 00:00:00 2001 From: marha Date: Sun, 28 Jun 2015 12:59:18 +0200 Subject: After every output flush the file buffers --- tools/plink/wincons.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/plink/wincons.c b/tools/plink/wincons.c index 508be3f8d..ea178de57 100644 --- a/tools/plink/wincons.c +++ b/tools/plink/wincons.c @@ -302,6 +302,7 @@ static void console_data_untrusted(HANDLE hout, const char *data, int len) DWORD dummy; /* FIXME: control-character filtering */ WriteFile(hout, data, len, &dummy, NULL); + FlushFileBuffers(hout); } int console_get_userpass_input(prompts_t *p, unsigned char *in, int inlen) @@ -407,6 +408,7 @@ int console_get_userpass_input(prompts_t *p, unsigned char *in, int inlen) if (!pr->echo) { DWORD dummy; WriteFile(hout, "\r\n", 2, &dummy, NULL); + FlushFileBuffers(hout); } if (len < 0) { -- cgit v1.2.3