summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbsd-compat/readpassphrase.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c
index 82a0b7239..c99b4e20c 100644
--- a/openbsd-compat/readpassphrase.c
+++ b/openbsd-compat/readpassphrase.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readpassphrase.c,v 1.23 2010/05/14 13:30:34 millert Exp $ */ 1/* $OpenBSD: readpassphrase.c,v 1.24 2013/11/24 23:51:29 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000-2002, 2007, 2010 4 * Copyright (c) 2000-2002, 2007, 2010
@@ -141,11 +141,11 @@ restart:
141 if (p < end) { 141 if (p < end) {
142 if ((flags & RPP_SEVENBIT)) 142 if ((flags & RPP_SEVENBIT))
143 ch &= 0x7f; 143 ch &= 0x7f;
144 if (isalpha(ch)) { 144 if (isalpha((unsigned char)ch)) {
145 if ((flags & RPP_FORCELOWER)) 145 if ((flags & RPP_FORCELOWER))
146 ch = (char)tolower(ch); 146 ch = (char)tolower((unsigned char)ch);
147 if ((flags & RPP_FORCEUPPER)) 147 if ((flags & RPP_FORCEUPPER))
148 ch = (char)toupper(ch); 148 ch = (char)toupper((unsigned char)ch);
149 } 149 }
150 *p++ = ch; 150 *p++ = ch;
151 } 151 }