Skip to content
Snippets Groups Projects
Commit 594fc041 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

added lf to Win32 getpass_r() so that next output appears in new line.

parent 94fcb4b0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment