Commit 8b3ed5d5 authored by Artur Wojcik's avatar Artur Wojcik
Browse files

open stream binary for writing binary image

parent 72f37e3d
......@@ -64,7 +64,7 @@ std::string read_string(const std::string& filename)
void write_buffer(const std::string& filename, const char* buffer, std::size_t size)
{
std::ofstream os(filename);
std::ofstream os(filename, std::ios::out | std::ios::binary);
os.write(buffer, size);
}
void write_buffer(const std::string& filename, const std::vector<char>& buffer)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment