Mercurial > libpst
diff src/dumpblocks.c @ 188:d588dafd03e8 stable-0-6-36
prep for fedora build
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 14 Apr 2009 07:53:13 -0700 |
parents | 6954d315aaa8 |
children | 2f38c4ce606f |
line wrap: on
line diff
--- a/src/dumpblocks.c Mon Apr 13 20:36:20 2009 -0700 +++ b/src/dumpblocks.c Tue Apr 14 07:53:13 2009 -0700 @@ -55,16 +55,9 @@ outname = (char *) pst_malloc(OUT_BUF); printf("Saving blocks\n"); while (ptr != NULL) { - /* if (pstfile.encryption == PST_ENC) { - c = pst_ff_getIDblock_dec(&pstfile, ptr->i_id, buf); - } else { */ - if ((ptr->i_id & 0x02) == 0 && pstfile.encryption == PST_ENC) { - c = pst_ff_getIDblock_dec(&pstfile, ptr->i_id, &buf); - } else { - c = pst_ff_getIDblock(&pstfile, ptr->i_id, &buf); - } - - if (c > 0) { + size_t c; + c = pst_ff_getIDblock_dec(&pstfile, ptr->i_id, &buf); + if (c) { snprintf(outname, OUT_BUF, "%#"PRIx64, ptr->i_id); if ((fp = fopen(outname, "wb")) == NULL) { printf("Failed to open file %s\n", outname);