chiark / gitweb /
conf-parser: add macro for ENUMV
[elogind.git] / src / journal / journal-file.c
index 78b937bb85f746553fe62fd00ccee72ffd4c27c7..901e71b6aa9f99b3ae67a1fdef846b9d019e0b30 100644 (file)
@@ -1344,7 +1344,7 @@ int journal_file_append_entry(JournalFile *f, const dual_timestamp *ts, const st
 
         /* Order by the position on disk, in order to improve seek
          * times for rotating media. */
-        qsort(items, n_iovec, sizeof(EntryItem), entry_item_cmp);
+        qsort_safe(items, n_iovec, sizeof(EntryItem), entry_item_cmp);
 
         r = journal_file_append_entry_internal(f, ts, xor_hash, items, n_iovec, seqnum, ret, offset);