We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff3822d + 303b765 commit b322ae0Copy full SHA for b322ae0
src/plugins/output/json/src/File.cpp
@@ -236,7 +236,7 @@ File::process(const char *str, size_t len)
236
if (_thread->file) {
237
// Store the record
238
if (_thread->m_calg == calg::GZIP) {
239
- gzfwrite(str, len, 1, (gzFile)_thread->file);
+ gzwrite((gzFile)_thread->file, str, len);
240
} else {
241
fwrite(str, len, 1, (FILE *)_thread->file);
242
}
0 commit comments