Skip to content

Commit b322ae0

Browse files
authored
Merge pull request #12 from norrisjeremy/zlib-compat
JSON output: use gzwrite instead of gzfwrite for compatibility with o…
2 parents ff3822d + 303b765 commit b322ae0

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)