summaryrefslogtreecommitdiff
path: root/ot_fullscrape.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_fullscrape.c')
-rw-r--r--ot_fullscrape.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ot_fullscrape.c b/ot_fullscrape.c
index b800431..39f51ec 100644
--- a/ot_fullscrape.c
+++ b/ot_fullscrape.c
@@ -20,7 +20,6 @@
20 20
21 21
22/* Libowfat */ 22/* Libowfat */
23#include "byte.h"
24#include "io.h" 23#include "io.h"
25#include "textcode.h" 24#include "textcode.h"
26 25
@@ -222,7 +221,7 @@ static void fullscrape_make_gzip(int taskid, ot_tasktype mode) {
222 if (!iovector.iov_base) 221 if (!iovector.iov_base)
223 return; 222 return;
224 223
225 byte_zero(&strm, sizeof(strm)); 224 memset(&strm, 0, sizeof(strm));
226 strm.next_out = (uint8_t *)iovector.iov_base; 225 strm.next_out = (uint8_t *)iovector.iov_base;
227 strm.avail_out = OT_SCRAPE_CHUNK_SIZE; 226 strm.avail_out = OT_SCRAPE_CHUNK_SIZE;
228 if (deflateInit2(&strm, 7, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY) != Z_OK) 227 if (deflateInit2(&strm, 7, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY) != Z_OK)