summaryrefslogtreecommitdiff
path: root/libstore/decode.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-03-11 00:44:35 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-03-11 00:44:35 +0000
commit672565ab1de2548a3c89b968629faba17f854b16 (patch)
treeac5cfa24c4ec0bd8dcbb18ca37a98abfa4e1e771 /libstore/decode.c
parentaed44d5c014134a9d5f13d080192d10dfe5fccfd (diff)
2002-03-11 Marcus Brinkmann <marcus@gnu.org>
* stripe.c (store_concat_class): Add store_concat_open. (store_concat_create): Do not multiply NUM_STORES with 2 to get the number of runs. * kids.c (store_allocate_child_encodings): Call allocate_encoding on child store K, not on STORE. (store_encode_children): Likewise. * decode.c (store_std_leaf_decode): Increment ENC->cur_data by NAME_LEN and MISC_LEN as appropriate.
Diffstat (limited to 'libstore/decode.c')
-rw-r--r--libstore/decode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libstore/decode.c b/libstore/decode.c
index cc063d34..cae2ba2f 100644
--- a/libstore/decode.c
+++ b/libstore/decode.c
@@ -69,6 +69,7 @@ store_std_leaf_decode (struct store_enc *enc,
name = strdup (enc->data + enc->cur_data);
if (! name)
return ENOMEM;
+ enc->cur_data += name_len;
}
else
name = 0;
@@ -83,6 +84,7 @@ store_std_leaf_decode (struct store_enc *enc,
return ENOMEM;
}
memcpy (misc, enc->data + enc->cur_data + name_len, misc_len);
+ enc->cur_data += misc_len;
}
else
misc = 0;