From 173f0a0e61139d721c203c12213d1a162eb545d4 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 22 Aug 2017 09:10:50 +1000 Subject: Use casts for arguments to ctype functions. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/4212) --- crypto/pem/pem_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/pem') diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c index c82b3c0ae2..865976bf8c 100644 --- a/crypto/pem/pem_lib.c +++ b/crypto/pem/pem_lib.c @@ -536,7 +536,8 @@ int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher) ((c >= '0') && (c <= '9')))) break; #else - if (!(isupper(c) || (c == '-') || isdigit(c))) + if (!(isupper((unsigned char)c) || (c == '-') + || isdigit((unsigned char)c))) break; #endif header++; -- cgit v1.2.3