projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94fcb4b
)
added lf to Win32 getpass_r() so that next output appears in new line.
author
Gunter Knauf
<gk@gknw.de>
Fri, 20 Jul 2007 16:01:05 +0000
(16:01 +0000)
committer
Gunter Knauf
<gk@gknw.de>
Fri, 20 Jul 2007 16:01:05 +0000
(16:01 +0000)
src/getpass.c
patch
|
blob
|
history
diff --git
a/src/getpass.c
b/src/getpass.c
index
26d7433
..
d15e289
100644
(file)
--- 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;