summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/readpassphrase.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2001-06-27 13:23:30 +0000
committerdjm <djm@openbsd.org>2001-06-27 13:23:30 +0000
commit234a690832f9fdfac808bf7130e13967e69888bc (patch)
tree64db4cb6b336597f14493cd3c98ae5dc3d40698c /lib/libc/gen/readpassphrase.c
parentsync2 (diff)
downloadwireguard-openbsd-234a690832f9fdfac808bf7130e13967e69888bc.tar.xz
wireguard-openbsd-234a690832f9fdfac808bf7130e13967e69888bc.zip
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);