Skip to content

Commit

Permalink
change vector to array
Browse files Browse the repository at this point in the history
  • Loading branch information
koolkdev committed Jan 7, 2022
1 parent f0baca4 commit 2a18f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfs-extract/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void dumpdir(const boost::filesystem::path& target,
std::ofstream output_file((target / npath).string(), std::ios::binary | std::ios::out);
size_t to_read = file->GetSize();
File::stream stream(file);
std::vector<char> data(0x2000);
std::array<char, 0x2000> data;
while (to_read > 0) {
stream.read(&*data.begin(), std::min(data.size(), to_read));
auto read = stream.gcount();
Expand Down

0 comments on commit 2a18f8d

Please sign in to comment.