From: Fabian Keil Date: Fri, 11 Sep 2020 11:32:36 +0000 (+0200) Subject: execute_external_filter(): Fix format specifiers in two log messages X-Git-Tag: v_3_0_29~143 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=7d6c6c53d7283529cc1f7942f898ab4f3768a2f6 execute_external_filter(): Fix format specifiers in two log messages --- diff --git a/filters.c b/filters.c index 973c5d10..cae3c846 100644 --- a/filters.c +++ b/filters.c @@ -1823,7 +1823,7 @@ static char *execute_external_filter(const struct client_state *csp, */ if ((*size != 0) && fwrite(content, *size, 1, fp) != 1) { - log_error(LOG_LEVEL_ERROR, "fwrite(..., %d, 1, ..) failed: %E", *size); + log_error(LOG_LEVEL_ERROR, "fwrite(..., %lu, 1, ..) failed: %E", *size); unlink(file_name); fclose(fp); return NULL; @@ -1899,7 +1899,7 @@ static char *execute_external_filter(const struct client_state *csp, { log_error(LOG_LEVEL_RE_FILTER, "Executing '%s' resulted in return value %d. " - "Read %d of up to %d bytes.", name, (ret >> 8), new_size, *size); + "Read %lu of up to %lu bytes.", name, (ret >> 8), new_size, *size); } unlink(file_name);