Skip to content

Commit 303b765

Browse files
committed
JSON output: use gzwrite instead of gzfwrite for compatibility with older versions of zlib.
1 parent ff3822d commit 303b765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/output/json/src/File.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ File::process(const char *str, size_t len)
236236
if (_thread->file) {
237237
// Store the record
238238
if (_thread->m_calg == calg::GZIP) {
239-
gzfwrite(str, len, 1, (gzFile)_thread->file);
239+
gzwrite((gzFile)_thread->file, str, len);
240240
} else {
241241
fwrite(str, len, 1, (FILE *)_thread->file);
242242
}

0 commit comments

Comments
 (0)