summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-10 21:10:06 +0000
committerMiles Bader <miles@gnu.org>1996-05-10 21:10:06 +0000
commit1d118bf5e77a6eb7e58210aa5374fc72c79dbe4d (patch)
treed92518e8f1e736541113f5e23ae6735b5292dd01 /libstore
parent671cdf2830e532856e674688a35f0ab6f2aff0e4 (diff)
(store_default_leaf_encode): Convert from the store_run vector to a off_t
vector for encoding.
Diffstat (limited to 'libstore')
-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)
{