diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/nc/compat/readpassphrase.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/nc/compat/readpassphrase.c b/apps/nc/compat/readpassphrase.c index 0d04134..f3aa248 100644 --- a/apps/nc/compat/readpassphrase.c +++ b/apps/nc/compat/readpassphrase.c | |||
@@ -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 | } |