GH-2730: Use binary mode when opening files in Extract file analyzer

This commit is contained in:
Tim Wojtulewicz 2023-02-17 15:39:00 -07:00
parent 4afc1303b4
commit 1766aa2808

View file

@ -18,7 +18,7 @@ Extract::Extract(RecordValPtr args, file_analysis::File* file, const std::string
filename(arg_filename), limit(arg_limit), depth(0)
{
char buf[128];
file_stream = fopen(filename.data(), "w");
file_stream = fopen(filename.data(), "wb");
if ( file_stream )
{