summaryrefslogtreecommitdiff
path: root/libarchive_fe
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive_fe')
-rw-r--r--libarchive_fe/passphrase.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libarchive_fe/passphrase.c b/libarchive_fe/passphrase.c
index 1eae0b88..d5ecccc5 100644
--- a/libarchive_fe/passphrase.c
+++ b/libarchive_fe/passphrase.c
@@ -237,11 +237,11 @@ restart:
if (p < end) {
if ((flags & RPP_SEVENBIT))
ch &= 0x7f;
- if (isalpha(ch)) {
+ if (isalpha((unsigned char)ch)) {
if ((flags & RPP_FORCELOWER))
- ch = (char)tolower(ch);
+ ch = (char)tolower((unsigned char)ch);
if ((flags & RPP_FORCEUPPER))
- ch = (char)toupper(ch);
+ ch = (char)toupper((unsigned char)ch);
}
*p++ = ch;
}