mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
GH-2730: Use binary mode when opening files in Extract file analyzer
This commit is contained in:
parent
4afc1303b4
commit
1766aa2808
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue