diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-11 22:44:43 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-11 22:44:43 +0100 |
commit | b785c858c3baf855ec42e3b83f5d23dadfece069 (patch) | |
tree | 028ce49fd67be77a7017ba4e634f01edaea9dced /src/journal/journal-file.c | |
parent | fdcad0c25579a60061b1fda956686e878a80faef (diff) |
journal: fix more 32/64 bit issues
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r-- | src/journal/journal-file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 6ba3d8dca3..419e15e46f 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -640,8 +640,7 @@ int journal_file_find_data_object_with_hash( if (o->object.flags & OBJECT_COMPRESSED) { #ifdef HAVE_XZ - uint64_t l; - size_t rsize; + uint64_t l, rsize; l = le64toh(o->object.size); if (l <= offsetof(Object, data.payload)) @@ -652,7 +651,7 @@ int journal_file_find_data_object_with_hash( if (!uncompress_blob(o->data.payload, l, &f->compress_buffer, &f->compress_buffer_size, &rsize)) return -EBADMSG; - if ((uint64_t) rsize == size && + if (rsize == size && memcmp(f->compress_buffer, data, size) == 0) { if (ret) |