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 /test/testutil/stanza.c | |
parent | 0d68367a1279a369146661f4857816b2044116b4 (diff) | |
download | openssl-00dfbaad88a69ed8294d6039bf5f7d722f72bf39.tar.gz |
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 'test/testutil/stanza.c')
-rw-r--r-- | test/testutil/stanza.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testutil/stanza.c b/test/testutil/stanza.c index 35967528f8..09fc181080 100644 --- a/test/testutil/stanza.c +++ b/test/testutil/stanza.c @@ -70,12 +70,12 @@ static char *strip_spaces(char *p) char *q; /* Skip over leading spaces */ - while (*p && isspace(*p)) + while (*p && isspace((unsigned char)*p)) p++; if (!*p) return NULL; - for (q = p + strlen(p) - 1; q != p && isspace(*q); ) + for (q = p + strlen(p) - 1; q != p && isspace((unsigned char)*q); ) *q-- = '\0'; return *p ? p : NULL; } |