Commit 173f0a0e authored by Pauli's avatar Pauli
Browse files

Use casts for arguments to ctype functions.

parent 0ab24083
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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++;
+1 −1
Original line number Diff line number Diff line
@@ -1205,7 +1205,7 @@ static int ssl_cipher_process_rulestr(const char *rule_str,
                   ((ch >= '0') && (ch <= '9')) ||
                   ((ch >= 'a') && (ch <= 'z')) || (ch == '-') || (ch == '.'))
#else
            while (isalnum(ch) || (ch == '-') || (ch == '.'))
            while (isalnum((unsigned char)ch) || (ch == '-') || (ch == '.'))
#endif
            {
                ch = *(++l);