diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-12-13 12:20:26 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-12-13 12:21:18 +0100 |
| commit | 5233aefa3f52bdf7847b585610a45e6b97fbb17e (patch) | |
| tree | 6e0a65a9101a096dc2327a08966fef6d1aeef7a7 /src/util.cpp | |
| parent | Merge #9334: Update to latest libsecp256k1 (diff) | |
| parent | Refactor: Removed begin/end_ptr functions. (diff) | |
| download | discoin-5233aefa3f52bdf7847b585610a45e6b97fbb17e.tar.xz discoin-5233aefa3f52bdf7847b585610a45e6b97fbb17e.zip | |
Merge #9305: Refactor: Removed begin/end_ptr functions.
8c1dbc5 Refactor: Removed begin/end_ptr functions. (Karl-Johan Alm)
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp index 014013d21..60701e794 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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); } } |