[systemd-commits] src/journal

Lennart Poettering lennart at kemper.freedesktop.org
Wed Feb 29 05:06:52 PST 2012


 src/journal/journal-file.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8dc6b88fd2dad113d7dab776d623d7b301e4b754
Author: Dirk Eibach <eibach at gdsys.de>
Date:   Wed Feb 29 12:45:46 2012 +0100

    systemd-journald: fix endianess bug

diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 20ca3f6..275caea 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;
 }



More information about the systemd-commits mailing list