diff options
-rw-r--r-- | gnupgparse.c | 2 | ||||
-rw-r--r-- | pgpkey.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gnupgparse.c b/gnupgparse.c index a7263b83..8b7bf4c3 100644 --- a/gnupgparse.c +++ b/gnupgparse.c @@ -77,7 +77,7 @@ static void fix_uid (char *uid) for (s = d = uid; *s;) { - if (*s == '\\' && *(s+1) == 'x' && isxdigit (*(s+2)) && isxdigit (*(s+3))) + if (*s == '\\' && *(s+1) == 'x' && isxdigit ((unsigned char) *(s+2)) && isxdigit ((unsigned char) *(s+3))) { *d++ = hexval (*(s+2)) << 4 | hexval (*(s+3)); s += 4; @@ -137,7 +137,7 @@ static const char *pgp_entry_fmt (char *dest, key = uid->parent; pkey = pgp_principal_key (key); - if (isupper (op)) + if (isupper ((unsigned char) op)) key = pkey; kflags = key->flags | (pkey->flags & KEYFLAG_RESTRICTIONS) |