Fix a couple more uses of ctype(3)

This commit is contained in:
Pierre Pronchery 2018-08-08 17:10:02 +02:00
parent dd0597f7f8
commit ba4d095daa

View File

@ -1038,7 +1038,7 @@ set_fw_chain_conf(const int type, const char * const conf_str)
&& *ndx != ' '
&& *ndx != ','
&& *ndx != '_'
&& isalnum(*ndx) == 0)
&& isalnum((int)(unsigned char)*ndx) == 0)
{
log_msg(LOG_ERR, "[*] Custom chain config parse error: "
"invalid character '%c' for chain type %i, "
@ -1998,7 +1998,7 @@ validate_ipt_chain_conf(const char * const chain_str)
&& *ndx != ' '
&& *ndx != ','
&& *ndx != '_'
&& isalnum(*ndx) == 0)
&& isalnum((int)(unsigned char)*ndx) == 0)
{
rv = 0;
break;