]> granicus.if.org Git - file/commitdiff
use the proper sector size when chasing the chain
authorChristos Zoulas <christos@zoulas.com>
Fri, 22 Apr 2016 16:00:29 +0000 (16:00 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 22 Apr 2016 16:00:29 +0000 (16:00 +0000)
src/cdf.c

index 9489f39e14bad73bcd7e5b5214f49b19a6700267..5ff16938700e8f5dd6804392d24510f189ac9afa 100644 (file)
--- a/src/cdf.c
+++ b/src/cdf.c
@@ -35,7 +35,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: cdf.c,v 1.75 2015/02/27 21:16:55 christos Exp $")
+FILE_RCSID("@(#)$File: cdf.c,v 1.76 2015/02/28 00:18:02 christos Exp $")
 #endif
 
 #include <assert.h>
@@ -547,7 +547,7 @@ cdf_read_short_sector_chain(const cdf_header_t *h,
     cdf_secid_t sid, size_t len, cdf_stream_t *scn)
 {
        size_t ss = CDF_SHORT_SEC_SIZE(h), i, j;
-       scn->sst_len = cdf_count_chain(ssat, sid, CDF_SEC_SIZE(h));
+       scn->sst_len = cdf_count_chain(ssat, sid, ss);
        scn->sst_dirlen = len;
 
        if (sst->sst_tab == NULL || scn->sst_len == (size_t)-1)