mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-25 06:55:32 +01:00
Refactor: Removed begin/end_ptr functions.
This commit is contained in:
@@ -704,13 +704,13 @@ void ShrinkDebugFile()
|
||||
// Restart the file with some of the end
|
||||
std::vector <char> vch(200000,0);
|
||||
fseek(file, -((long)vch.size()), SEEK_END);
|
||||
int nBytes = fread(begin_ptr(vch), 1, vch.size(), file);
|
||||
int nBytes = fread(vch.data(), 1, vch.size(), file);
|
||||
fclose(file);
|
||||
|
||||
file = fopen(pathLog.string().c_str(), "w");
|
||||
if (file)
|
||||
{
|
||||
fwrite(begin_ptr(vch), 1, nBytes, file);
|
||||
fwrite(vch.data(), 1, nBytes, file);
|
||||
fclose(file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user