diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-12-23 21:31:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-12-23 21:31:07 +0100 |
commit | 838c669055ddbbd04998ffc345a81f6fddbb9cfe (patch) | |
tree | 1115907b1d2155b6427a3cc01db333ab8d44dcd6 /src/journal/journal-file.c | |
parent | d6ef10fadfe757c8f0a5664097978b4f4d0f430e (diff) | |
parent | ae5e1b19e78ed85259868d12ca8042fd2e87d423 (diff) |
Merge pull request #2158 from keszybz/journal-decompression
Journal decompression fixes
Diffstat (limited to 'src/journal/journal-file.c')
-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 6f09301521..9e362bacae 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -1084,7 +1084,7 @@ static int journal_file_append_data( if (JOURNAL_FILE_COMPRESS(f) && size >= COMPRESSION_SIZE_THRESHOLD) { size_t rsize = 0; - compression = compress_blob(data, size, o->data.payload, &rsize); + compression = compress_blob(data, size, o->data.payload, size - 1, &rsize); if (compression >= 0) { o->object.size = htole64(offsetof(Object, data.payload) + rsize); |