Skip to content

Commit

Permalink
Merge pull request #40 from tomty89/write
Browse files Browse the repository at this point in the history
fix wrong open mode used for outfile in non-Windows system
  • Loading branch information
Presburger committed Apr 3, 2020
2 parents 25dee1b + b607541 commit 776fd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void sub_process(const string &dir) {
}

#ifndef _WIN32
FILE *outfile = fopen(outloc.c_str(), "rb");
FILE *outfile = fopen(outloc.c_str(), "wb");
#else
std::wstring outloc_w;
outloc_w.resize(outloc.size());
Expand Down

0 comments on commit 776fd9c

Please sign in to comment.