compress_buffer(): Fix format specifiers in log messages
authorFabian Keil <fk@fabiankeil.de>
Fri, 11 Sep 2020 11:25:35 +0000 (13:25 +0200)
committerFabian Keil <fk@fabiankeil.de>
Fri, 11 Sep 2020 14:35:39 +0000 (16:35 +0200)
cgi.c

diff --git a/cgi.c b/cgi.c
index 52cccb9..0241ebf 100644 (file)
--- a/cgi.c
+++ b/cgi.c
@@ -1561,14 +1561,14 @@ char *compress_buffer(char *buffer, size_t *buffer_length, int compression_level
          (Bytef *)buffer, *buffer_length, compression_level))
    {
       log_error(LOG_LEVEL_ERROR,
-         "compress2() failed. Buffer size: %d, compression level: %d.",
+         "compress2() failed. Buffer size: %lu, compression level: %d.",
          new_length, compression_level);
       freez(compressed_buffer);
       return NULL;
    }
 
    log_error(LOG_LEVEL_RE_FILTER,
-      "Compressed content from %d to %d bytes. Compression level: %d",
+      "Compressed content from %lu to %lu bytes. Compression level: %d",
       *buffer_length, new_length, compression_level);
 
    *buffer_length = (size_t)new_length;