summaryrefslogtreecommitdiff
path: root/libstore/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'libstore/encode.c')
-rw-r--r--libstore/encode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libstore/encode.c b/libstore/encode.c
index bf9ab398..e56dbea1 100644
--- a/libstore/encode.c
+++ b/libstore/encode.c
@@ -55,7 +55,10 @@ store_default_leaf_encode (struct store *store, struct store_enc *enc)
enc->ints[enc->cur_int++] = store->misc_len;
for (i = 0; i < store->num_runs; i++)
- enc->offsets[enc->cur_offset++] = store->runs[i];
+ {
+ enc->offsets[enc->cur_offset++] = store->runs[i].start;
+ enc->offsets[enc->cur_offset++] = store->runs[i].length;
+ }
if (store->name)
{