From: Dirk Eibach Date: Wed, 29 Feb 2012 11:45:46 +0000 (+0100) Subject: systemd-journald: fix endianess bug X-Git-Tag: v44~77 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dc6b88fd2dad113d7dab776d623d7b301e4b754;p=systemd systemd-journald: fix endianess bug --- diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 20ca3f61..275caea5 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; }