systemd-journald: fix endianess bug
This commit is contained in:
committed by
Lennart Poettering
parent
e444cbf040
commit
8dc6b88fd2
@@ -238,7 +238,7 @@ static int journal_file_allocate(JournalFile *f, uint64_t offset, uint64_t size)
|
||||
if (fstat(f->fd, &f->last_stat) < 0)
|
||||
return -errno;
|
||||
|
||||
f->header->arena_size = new_size - htole64(f->header->arena_offset);
|
||||
f->header->arena_size = htole64(new_size - le64toh(f->header->arena_offset));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user