From: Christos Zoulas Date: Fri, 22 Apr 2016 16:00:29 +0000 (+0000) Subject: use the proper sector size when chasing the chain X-Git-Tag: FILE5_27~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a58e332454557807dba767fcb598ff3259bef74b;p=file use the proper sector size when chasing the chain --- diff --git a/src/cdf.c b/src/cdf.c index 9489f39e..5ff16938 100644 --- 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 @@ -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)