summaryrefslogtreecommitdiff
path: root/lib/libc/gen/readpassphrase.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2001-06-27 13:23:31 +0000
committerDamien Miller <djm@cvs.openbsd.org>2001-06-27 13:23:31 +0000
commitb518556679609062f092d9a589e9d2545dab9a6f (patch)
tree72b102249991e310f2cd8a6084429911f586af07 /lib/libc/gen/readpassphrase.c
parentcc64a457aa8e5d280aa7586d560f9625e67e7757 (diff)
typo, spotted by Tom Holroyd <tomh@po.crl.go.jp>; ok deraadt@
Diffstat (limited to 'lib/libc/gen/readpassphrase.c')
-rw-r--r--lib/libc/gen/readpassphrase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/readpassphrase.c b/lib/libc/gen/readpassphrase.c
index d1deba7630d..f95a2f7f46a 100644
--- a/lib/libc/gen/readpassphrase.c
+++ b/lib/libc/gen/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 <ctype.h>
@@ -109,7 +109,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);