diff options
author | Pauli <paul.dale@oracle.com> | 2017-08-21 07:36:23 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-08-22 07:35:08 +1000 |
commit | 00dfbaad88a69ed8294d6039bf5f7d722f72bf39 (patch) | |
tree | 55eed0684ae00018ea84a389530563fea46d4b7e /apps/opt.c | |
parent | 0d68367a1279a369146661f4857816b2044116b4 (diff) |
Fix ctype arguments.
Cast arguments to the various ctype functions to unsigned char to match their
documentation.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4203)
Diffstat (limited to 'apps/opt.c')
-rw-r--r-- | apps/opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/opt.c b/apps/opt.c index 72d0c535fa..40d6a279b3 100644 --- a/apps/opt.c +++ b/apps/opt.c @@ -61,7 +61,7 @@ char *opt_progname(const char *argv0) if (n > sizeof prog - 1) n = sizeof prog - 1; for (q = prog, i = 0; i < n; i++, p++) - *q++ = isupper(*p) ? tolower(*p) : *p; + *q++ = tolower((unsigned char)*p); *q = '\0'; return prog; } |