mirror of
https://github.com/curl/curl.git
synced 2026-04-27 14:22:18 +03:00
added lf to Win32 getpass_r() so that next output appears in new line.
This commit is contained in:
parent
94fcb4b09d
commit
594fc0411e
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue