Uses %zu to print size_t instead of %d.

This will help to reduce the amount of warnings during the compilation
See #631 for further information.
This commit is contained in:
Felipe Zimmerle
2014-03-26 15:10:44 -07:00
parent 503e8f6c8e
commit 1e63e49db4
3 changed files with 5 additions and 5 deletions

View File

@@ -227,7 +227,7 @@ static int multipart_parse_content_disposition(modsec_rec *msr, char *c_d_value)
p--;
if(*p == '\'' || *p == '\"') {
if (msr->txcfg->debuglog_level >= 9) {
msr_log(msr, 9, "Multipart: Invalid quoting detected: %s length %d bytes",
msr_log(msr, 9, "Multipart: Invalid quoting detected: %s length %zu bytes",
log_escape_nq(msr->mp, p), strlen(p));
}
msr->mpd->flag_invalid_quoting = 1;