From 54a5d679023035b26334b1511b934a2e029a510a Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 1 Aug 2001 14:06:58 +0000 Subject: [PATCH] Signed fixes. Noted by Vincent Lefevre's compiler. --- gnupgparse.c | 2 +- pgpkey.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gnupgparse.c b/gnupgparse.c index a7263b839..8b7bf4c30 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; diff --git a/pgpkey.c b/pgpkey.c index 24d66d6f3..ab405ee7b 100644 --- a/pgpkey.c +++ b/pgpkey.c @@ -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) -- 2.40.0