diff --git a/apache2/msc_util.c b/apache2/msc_util.c index c452e18e..f366ca8f 100644 --- a/apache2/msc_util.c +++ b/apache2/msc_util.c @@ -437,7 +437,7 @@ int sql_hex2bytes_inplace(unsigned char *data, int len) { } *d = '\0'; - return strlen(begin); + return strlen((char *)begin); } /** diff --git a/apache2/re_actions.c b/apache2/re_actions.c index 7030746d..280452b9 100644 --- a/apache2/re_actions.c +++ b/apache2/re_actions.c @@ -1855,7 +1855,7 @@ static apr_status_t msre_action_initcol_execute(modsec_rec *msr, apr_pool_t *mpt /* IMP1 We have a function for this now, parse_name_eq_value? */ s = strstr(data, "="); if (s == NULL) return 0; - col_name = strtolower_inplace(data); + col_name = strtolower_inplace((unsigned char *)data); col_key = s + 1; *s = '\0';