summaryrefslogtreecommitdiff
path: root/openbsd-compat/readpassphrase.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-06-27 23:26:38 +1000
committerDamien Miller <djm@mindrot.org>2001-06-27 23:26:38 +1000
commitb90416b7df65a0d8e36c5e6887e33ebd8b25125c (patch)
treedf9652eac20fd383c3f0d36b81de96eb993fdfa2 /openbsd-compat/readpassphrase.c
parentb5b0af4d58906ff332ec0b67ca0b9cf3965f926a (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c
index 308e7cc5..10f0e0ed 100644
--- a/openbsd-compat/readpassphrase.c
+++ b/openbsd-compat/readpassphrase.c
@@ -26,7 +26,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: readpassphrase.c,v 1.4 2001/06/18 17:41:39 millert Exp $";
+static char rcsid[] = "$OpenBSD: readpassphrase.c,v 1.5 2001/06/27 13:23:30 djm Exp $";
#endif /* LIBC_SCCS and not lint */
#include "includes.h"
@@ -113,7 +113,7 @@ readpassphrase(prompt, buf, bufsiz, flags)
for (p = buf; read(input, &ch, 1) == 1 && ch != '\n' && ch != '\r';) {
if (p < end) {
if ((flags & RPP_SEVENBIT))
- ch = ch &= 0x7f;
+ ch &= 0x7f;
if (isalpha(ch)) {
if ((flags & RPP_FORCELOWER))
ch = tolower(ch);