mirror of
https://github.com/curl/curl.git
synced 2025-04-12 16:20:35 +08:00
added lf to Win32 getpass_r() so that next output appears in new line.
This commit is contained in:
parent
94fcb4b09d
commit
594fc0411e
@ -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…
x
Reference in New Issue
Block a user