diff options
author | Dirk Eibach <eibach@gdsys.de> | 2012-02-29 12:45:46 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-02-29 14:06:33 +0100 |
commit | 8dc6b88fd2dad113d7dab776d623d7b301e4b754 (patch) | |
tree | 114e27d87beab59a03c2a26b70f1f12f5f0091b9 | |
parent | e444cbf040bf9e532a18a4d80bcbc4a49e6a1b21 (diff) |
systemd-journald: fix endianess bug
-rw-r--r-- | src/journal/journal-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 20ca3f61cb..275caea50e 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -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; } |