Merge remote-tracking branch 'origin/topic/timw/2730-file-extract-binary-mode'

* origin/topic/timw/2730-file-extract-binary-mode:
  GH-2730: Use binary mode when opening files in Extract file analyzer
This commit is contained in:
Tim Wojtulewicz 2023-02-23 08:27:12 -07:00
commit 3946f34565
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
6.0.0-dev.117 | 2023-02-23 08:27:12 -0700
* GH-2730: Use binary mode when opening files in Extract file analyzer (Tim Wojtulewicz)
6.0.0-dev.115 | 2023-02-23 07:40:22 -0700
* Include stdint.h early in flex files to prevent redefinition of int type macros (Tim Wojtulewicz)

View file

@ -1 +1 @@
6.0.0-dev.115
6.0.0-dev.117

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 )
{