aboutsummaryrefslogtreecommitdiff
path: root/src/restore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/restore.cpp')
-rw-r--r--src/restore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/restore.cpp b/src/restore.cpp
index 3f5f4cf..c9ace96 100644
--- a/src/restore.cpp
+++ b/src/restore.cpp
@@ -188,7 +188,8 @@ restore(const OptionsRestore &opts)
char *in_buffer = res.in_buffer.get();
for (size_t s = 0; s < in_sectors_read; ++s) {
- const uint64_t out_offset = le64toh(*((uint64_t *)in_buffer));
+ const uint64_t out_offset =
+ le64toh(*(reinterpret_cast<uint64_t *>(in_buffer)));
in_buffer += sizeof(uint64_t);
if (!res.out_file.seekp(out_offset, std::ios_base::beg)) {