diff options
author | Michael Baentsch <57787676+baentsch@users.noreply.github.com> | 2023-06-08 08:05:42 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-06-09 17:32:14 +0200 |
commit | 79331b86e6ed0b6f37d3e78e5f47d420dc9677dd (patch) | |
tree | ceb5683460c0131bd3cdd255cb34d5b8d9f55817 /apps/lib/apps.c | |
parent | 0ffe629a7f57424a460a05b7064a374835b1c279 (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)
(cherry picked from commit 8a2e74d0536c91585fbe789e0ab7b06cab0289c2)
Diffstat (limited to 'apps/lib/apps.c')
-rw-r--r-- | apps/lib/apps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/lib/apps.c b/apps/lib/apps.c index f52254cf69..265055543a 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -630,13 +630,13 @@ void *app_malloc(size_t sz, const char *what) char *next_item(char *opt) /* in list separated by comma and/or space */ { /* advance to separator (comma or whitespace), if any */ - while (*opt != ',' && !isspace(*opt) && *opt != '\0') + while (*opt != ',' && !isspace(_UC(*opt)) && *opt != '\0') opt++; if (*opt != '\0') { /* terminate current item */ *opt++ = '\0'; /* skip over any whitespace after separator */ - while (isspace(*opt)) + while (isspace(_UC(*opt))) opt++; } return *opt == '\0' ? NULL : opt; /* NULL indicates end of input */ |