aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/getpass.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/getpass.c b/src/getpass.c
index 26d7433ea..d15e28903 100644
--- a/src/getpass.c
+++ b/src/getpass.c
@@ -115,6 +115,8 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
previous one as well */
i = i - (i>=1?2:1);
}
+ /* since echo is disabled, print a newline */
+ fputs("\n", stderr);
/* if user didn't hit ENTER, terminate buffer */
if (i==buflen)
buffer[buflen-1]=0;