git.samba.org
/
abartlet
/
lorikeet-heimdal.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b8ebf0
)
_getch() can return '\r' on Windows
author
Asanka Herath
<asanka@secure-endpoints.com>
Wed, 26 May 2010 14:16:36 +0000
(10:16 -0400)
committer
Asanka Herath
<asanka@secure-endpoints.com>
Wed, 26 May 2010 14:38:40 +0000
(10:38 -0400)
lib/hcrypto/ui.c
patch
|
blob
|
history
diff --git
a/lib/hcrypto/ui.c
b/lib/hcrypto/ui.c
index f6f8a1ffe28b2cef34c1cd7804ba3b6a72bf42cf..e32bb9a0bec4bf4031875556b5110021b4fddbc0 100644
(file)
--- a/
lib/hcrypto/ui.c
+++ b/
lib/hcrypto/ui.c
@@
-77,7
+77,7
@@
read_string(const char *preprompt, const char *prompt,
p = buf;
while(intr_flag == 0){
c = ((echo)? _getche(): _getch());
- if(c == '\n')
+ if(c == '\n'
|| c == '\r'
)
break;
if(of == 0)
*p++ = c;