Skip to content

Commit

Permalink
fixed MT
Browse files Browse the repository at this point in the history
Change buffer size from 131072 to 8192 in the copySingleFile function
to fix MT
  • Loading branch information
i3sey committed Apr 26, 2024
1 parent 7b17a0f commit 30b5b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/path_funcs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ bool copySingleFile(const std::string& fromFile, const std::string& toFile) {
FILE* srcFile = fopen(fromFile.c_str(), "rb");
FILE* destFile = fopen(toFile.c_str(), "wb");
if (srcFile && destFile) {
const size_t bufferSize = 131072; // Increase buffer size to 128 KB
const size_t bufferSize = 8192;
char buffer[bufferSize];
size_t bytesRead;

Expand Down

0 comments on commit 30b5b46

Please sign in to comment.