diff options
author | Gunter Knauf <gk@gknw.de> | 2007-07-20 16:01:05 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2007-07-20 16:01:05 +0000 |
commit | 594fc0411e235ed4aa203e9cd838eefbd971ea22 (patch) | |
tree | bb78a43e4a3debcc4aa66e02ac3d168043102ed8 /src/getpass.c | |
parent | 94fcb4b09d73e948dc1c5c834291a818815b507b (diff) | |
download | curl-594fc0411e235ed4aa203e9cd838eefbd971ea22.tar.gz |
added lf to Win32 getpass_r() so that next output appears in new line.
Diffstat (limited to 'src/getpass.c')
-rw-r--r-- | src/getpass.c | 2 |
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; |