summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-06-09 15:20:42 +0200
committerLennart Poettering <lennart@poettering.net>2012-06-17 00:03:13 +0200
commit10b6f904cc58c5a725f123e17819516eca606a3e (patch)
treec0791e5f95c1782448e5c03f903291508e512a6e /src/journal/journal-file.c
parentba6b3039531a70466dd955c6faa9bf521b3dfbac (diff)
journal: fix monotonic seeking
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 73420d9c1b..db64a32e61 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -1400,11 +1400,11 @@ int journal_file_move_to_entry_by_monotonic(
Object **ret,
uint64_t *offset) {
- char t[8+32+1] = "_BOOT_ID=";
+ char t[9+32+1] = "_BOOT_ID=";
Object *o;
int r;
- sd_id128_to_string(boot_id, t + 8);
+ sd_id128_to_string(boot_id, t + 9);
r = journal_file_find_data_object(f, t, strlen(t), &o, NULL);
if (r < 0)