diff options
| author | Jan Sucan <jan@jansucan.com> | 2021-05-30 13:51:06 +0200 |
|---|---|---|
| committer | Jan Sucan <jan@jansucan.com> | 2021-05-30 13:51:06 +0200 |
| commit | 5bed7e14f82d693dffabb8b440f17dfdf79dbe22 (patch) | |
| tree | 10a9badf7d2fdfbca7f84add058df1684b783b3d /src | |
| parent | 24e36faed4c10817999ff37bc76f36230930e4bb (diff) | |
Fix writing of diff file records
Diffstat (limited to 'src')
| -rw-r--r-- | src/backup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backup.c b/src/backup.c index b4c0e0a..5f57ecd 100644 --- a/src/backup.c +++ b/src/backup.c @@ -123,9 +123,10 @@ backup(const options_t *const opts, resources_t *const res) memcpy(res->out_buffer + out_buffer_index, (void *)&o, sizeof(o)); + out_buffer_index += sizeof(o); memcpy(res->out_buffer + out_buffer_index, &(res->in_buffer[i]), opts->sector_size); - out_buffer_index += sizeof(o) + opts->sector_size; + out_buffer_index += opts->sector_size; } offset += opts->sector_size; |
