diff options
-rw-r--r-- | tools/plink/wincons.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |