summaryrefslogtreecommitdiffstats
path: root/apps/cmp.c
diff options
context:
space:
mode:
authorMichael Baentsch <57787676+baentsch@users.noreply.github.com>2023-06-08 08:05:42 +0200
committerTomas Mraz <tomas@openssl.org>2023-06-09 17:30:28 +0200
commit8a2e74d0536c91585fbe789e0ab7b06cab0289c2 (patch)
treec744f66c5592e44c5087536cef2e95141c132ba6 /apps/cmp.c
parent0ef024a492212b6cac30d62485a3b29632af2ee2 (diff)
Cast the argument to unsigned char when calling isspace()
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21151)
Diffstat (limited to 'apps/cmp.c')
-rw-r--r--apps/cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/cmp.c b/apps/cmp.c
index 72acabcb6f..94ccde1a74 100644
--- a/apps/cmp.c
+++ b/apps/cmp.c
@@ -2174,7 +2174,7 @@ static const char *prev_item(const char *opt, const char *end)
beg = end;
while (beg > opt) {
--beg;
- if (beg[0] == ',' || isspace(beg[0])) {
+ if (beg[0] == ',' || isspace(_UC(beg[0]))) {
++beg;
break;
}
@@ -2189,7 +2189,7 @@ static const char *prev_item(const char *opt, const char *end)
opt_item[len] = '\0';
while (beg > opt) {
--beg;
- if (beg[0] != ',' && !isspace(beg[0])) {
+ if (beg[0] != ',' && !isspace(_UC(beg[0]))) {
++beg;
break;
}