summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@solidstatenetworks.com>2021-07-11 16:58:48 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2021-12-24 12:52:14 +0100
commit18a4712638b1e1a782457bff643b76cbd8305db4 (patch)
tree39bb593f3823a21f884cfe736ef83871362f797b /test
parente08cb8e5972299644857cb808fcdb1ea63873b3a (diff)
Call deflateBound to calculate length with custom gzip header in example.
Diffstat (limited to 'test')
-rw-r--r--test/example.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/example.c b/test/example.c
index 5dc8290..821cfb8 100644
--- a/test/example.c
+++ b/test/example.c
@@ -928,6 +928,7 @@ void test_deflate_set_header(unsigned char *compr, size_t comprLen) {
if (err == Z_OK) {
printf("deflateSetHeader(): OK\n");
}
+ PREFIX(deflateBound)(&c_stream, (unsigned long)comprLen);
c_stream.next_in = (unsigned char *)hello;
c_stream.next_out = compr;