diff options
| author | Jan Sucan <jan@jansucan.com> | 2024-04-27 15:58:59 +0200 |
|---|---|---|
| committer | Ján Sučan <jan@jansucan.com> | 2024-04-27 16:16:36 +0200 |
| commit | 4387433f3bc125ed8dd08bd974efd8f00fcb5949 (patch) | |
| tree | 6a5fe468b5a76c469d3fc0d0483f37a7ba745a97 /src/backup.cpp | |
| parent | 6a4d6d3f5fb59fc6dd05a1b478a29dc5ae1344fa (diff) | |
Fix issues reported by cppcheck
Diffstat (limited to 'src/backup.cpp')
| -rw-r--r-- | src/backup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backup.cpp b/src/backup.cpp index b7f23b2..99a9141 100644 --- a/src/backup.cpp +++ b/src/backup.cpp @@ -197,8 +197,8 @@ backup(const OptionsBackup &opts) } /* Write the next backup record */ const uint64_t o = htole64(input_file_offset); - memcpy(res.out_buffer.get() + out_buffer_index, (void *)&o, - sizeof(o)); + memcpy(res.out_buffer.get() + out_buffer_index, + reinterpret_cast<const void *>(&o), sizeof(o)); out_buffer_index += sizeof(o); memcpy(res.out_buffer.get() + out_buffer_index, |
