diff options
author | Damien Miller <djm@mindrot.org> | 2001-06-27 23:26:38 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-06-27 23:26:38 +1000 |
commit | b90416b7df65a0d8e36c5e6887e33ebd8b25125c (patch) | |
tree | df9652eac20fd383c3f0d36b81de96eb993fdfa2 /openbsd-compat/readpassphrase.c | |
parent | b5b0af4d58906ff332ec0b67ca0b9cf3965f926a (diff) |
- (djm) Sync with -current openbsd-compat/readpassphrase.c:
- djm@cvs.openbsd.org 2001/06/27 13:23:30
typo, spotted by Tom Holroyd <tomh@po.crl.go.jp>; ok deraadt@
Diffstat (limited to 'openbsd-compat/readpassphrase.c')
-rw-r--r-- | openbsd-compat/readpassphrase.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c index 308e7cc5f..10f0e0ed3 100644 --- a/openbsd-compat/readpassphrase.c +++ b/openbsd-compat/readpassphrase.c | |||
@@ -26,7 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | #if defined(LIBC_SCCS) && !defined(lint) | 28 | #if defined(LIBC_SCCS) && !defined(lint) |
29 | static char rcsid[] = "$OpenBSD: readpassphrase.c,v 1.4 2001/06/18 17:41:39 millert Exp $"; | 29 | static char rcsid[] = "$OpenBSD: readpassphrase.c,v 1.5 2001/06/27 13:23:30 djm Exp $"; |
30 | #endif /* LIBC_SCCS and not lint */ | 30 | #endif /* LIBC_SCCS and not lint */ |
31 | 31 | ||
32 | #include "includes.h" | 32 | #include "includes.h" |
@@ -113,7 +113,7 @@ readpassphrase(prompt, buf, bufsiz, flags) | |||
113 | for (p = buf; read(input, &ch, 1) == 1 && ch != '\n' && ch != '\r';) { | 113 | for (p = buf; read(input, &ch, 1) == 1 && ch != '\n' && ch != '\r';) { |
114 | if (p < end) { | 114 | if (p < end) { |
115 | if ((flags & RPP_SEVENBIT)) | 115 | if ((flags & RPP_SEVENBIT)) |
116 | ch = ch &= 0x7f; | 116 | ch &= 0x7f; |
117 | if (isalpha(ch)) { | 117 | if (isalpha(ch)) { |
118 | if ((flags & RPP_FORCELOWER)) | 118 | if ((flags & RPP_FORCELOWER)) |
119 | ch = tolower(ch); | 119 | ch = tolower(ch); |